[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] text: Avoid creating indent-only lines in autoi
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH] text: Avoid creating indent-only lines in autoindent |
Date: |
Sat, 22 Oct 2016 17:44:50 +0200 |
On Sat, Oct 22, 2016, at 10:41, Florian Zeitz wrote:
> This avoids leaving indentation behind on otherwise empty lines.
> This is achieved by removing indentation when Enter is hit while
> current_x is at the end of the current line's indentation.
Interesting patch. Thanks.
However, with your patch applied, try this:
src/nano --ignore --auto +7,88 README
and type M-P to switch on whitespace display,
then type three times <Enter>. As intended,
nano avoids leaving behind a line containing
only whitespace. But now type three times
M-U followed by three times M-E. Now there
are three lines containing only whitespace.
Unexpected and unwanted.
Benno
--
http://www.fastmail.com - mmm... Fastmail...