|
From: | Benno Schulenberg |
Subject: | [Nano-devel] RFC: change the behavior when indenting/commenting a marked region? |
Date: | Tue, 12 Dec 2017 21:22:56 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
Op 11-12-17 om 23:45 schreef Brand Huntsman:
On Mon, 11 Dec 2017 20:39:33 +0100 Benno Schulenberg <address@hidden> wrote:For me, the indent/comment feature would be more "intuitive" if, when the cursor at the bottom of the selection is at the left edge of the screen, that then that line is not included in the indenting/commenting. Because it always surprises me that a line where no text is highlighted at all, that this line also gets indented or commented.Not (un)indenting/(un)commenting a line when the bottom cursor is at zero would be even better, that has always bugged me too.
Good. Is there anyone who has objections against (slightly) changing the behavior of indenting/unindenting/commenting/uncommenting when the end point of the marked region is at the very start of a line? The change is that in that case this line will not be included in the action.
The cursor movement code should still be moved out of indent_a_line() and comment_line().
True, it is not efficient, but that is of little concern here -- the user will hardly do an indent or comment on thousands of lines at once. But... if you care to make a patch for it, and if it doesn't cost extra lines of code, you're welcome. Benno
[Prev in Thread] | Current Thread | [Next in Thread] |