[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: |
Tue, 21 Mar 2017 11:56:04 +0100 |
Hello Florian,
On Sat, Oct 22, 2016, at 09: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 lines indentation.
As indicated earlier, your patch did not do the right thing when
using Undo and Redo. Attached reworked version of your change
does work correctly with Undo and Redo.
If you could test the patch, that would be nice. It is against
current git, but applies without fuzz to 2.7.4 and most likely
to other recent nanos as well.
> This requires temporarily disabling autoindent, when creating
> whitespace-only lines is desired.
Another method is: to type an extra blank followed by <Left>
and then press <Enter>.
Benno
--
http://www.fastmail.com - The way an email service should be
0001-editing-avoid-creating-blank-lines-when-using-autoin.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Nano-devel] [PATCH] text: Avoid creating indent-only lines in autoindent,
Benno Schulenberg <=