|
From: | Benno Schulenberg |
Subject: | Re: [Nano-devel] a newline getting pushed offscreen |
Date: | Tue, 27 Jun 2017 21:25:06 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
Op 27-06-17 om 21:06 schreef Benno Schulenberg:
It seems to me that the counting how many columns a line is, counts one column too few: the column where the cursor is when it is at the very end of the line, on the virtual newline -- that is: on the terminating \0 byte. That byte also needs a column.
So I propose the attached solution. Benno
set-end-of-line-only-at-real-EOL.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |