- 12 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 13 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
And also case-sensitive searches, backward searches, and searching again.
-
- 02 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 29 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
Mentioning "GNU nano" instead of "This program" and referring to the website instead of to a postal address.
-
- 28 Aug, 2016 2 commits
-
-
Benno Schulenberg authored
Leave the optimization of actual screen writes to ncurses.
-
Benno Schulenberg authored
Add the keycodes and routines to allow the user to forego setting the mark explicitly (with M-A / ^6) and instead quickly select a few words or lines by holding down Shift together with the movement keys. (Some combinations with Shift are swallowed by some terminal emulators. To work around some of those, the combinations Shift+Alt+Left/Right work as Shift+Home/End and Shift+Alt+Up/Down work as Shift+PageUp/PageDown.)
-
- 25 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 14 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48751 reported by Andrew Ho. This also fixes compilation when configured with --enable-tiny.
-
- 07 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
If this breaks your build, please send report or instructions or patch.
-
- 03 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48660.
-
- 02 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
Straightforward code is more important than the tiniest possible binary. Also adjust some comments and rename a variable.
-
- 01 Aug, 2016 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
For horizontal scrolling, it is not the /desired/ column position that is relevant for determining whether a line needs to be redrawn after a cursor movement, but the /actual/ column positions before and after. This fixes https://savannah.gnu.org/bugs/?48627, and fixes https://savannah.gnu.org/bugs/?48629.
-
Benno Schulenberg authored
Having two unneeded parameters in the tiny version is acceptable -- the code gets so much more readable.
-
Benno Schulenberg authored
Leave the rest of any escape sequence to be processed normally, which should be possible because those characters are all in ASCII range. This fixes https://savannah.gnu.org/bugs/?48318.
-
- 31 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
There is no need to specially flag a function key or editing key -- the keycode is indication enough in itself: outside of byte range.
-
- 30 Jul, 2016 3 commits
-
-
Benno Schulenberg authored
And instead of using two key types, just use a bool to indicate whether a keystroke involves Meta.
-
Benno Schulenberg authored
A keycode is either already in byte range (so there is nothing to do) or it is not and it shouldn't be (so there is nothing to do either).
-
Benno Schulenberg authored
After initialization, the type of a key is never used nor needed (other than for meta keys).
-
- 27 Jul, 2016 2 commits
-
-
Benno Schulenberg authored
Those lines don't exist in that mode -- the relevant subwindows are smaller, or have been made smaller just before.
-
Benno Schulenberg authored
-
- 24 Jul, 2016 2 commits
-
-
David Lawrence Ramsey authored
This fulfills https://savannah.gnu.org/bugs/?48154.
-
Benno Schulenberg authored
And hard-bind the keys Ctrl+Up and Ctrl+Down to these functions. Unlike the paragraph-jumping code, these new functions disregard any indentation, treating only blank lines as separators. They also do an automatic smart home when that option is set. This fulfills https://savannah.gnu.org/bugs/?48291.
-
- 16 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 14 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 13 Jul, 2016 2 commits
-
-
Benno Schulenberg authored
This allows the user to specify which other characters, besides the default alphanumeric ones, should be considered as part of a word, so that word operations like Ctrl+Left and Ctrl+Right will pass them by. Using this option overrides the option --wordbounds. This fulfills https://savannah.gnu.org/bugs/?47283.
-
Benno Schulenberg authored
-
- 12 Jul, 2016 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 03 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
When we get a ^J as verbatim input, it is not possible to include it into the file buffer or the prompt answer, because this would mean adding an encoded null to the buffer or answer, and that is not what the user intended. One option would have been to simply ignore a ^J in verbatim input. But the choice has been made to act the same way as when the ^J (0x0A) is found in the file data: start a new line. That is the same response as to the Enter key, yes -- but the code for the Enter key is ^M (0x0D), not ^J. So, to be more precise, rename the relevant variable from 'got_enter' to 'got_newline'.
-
- 29 Jun, 2016 4 commits
-
-
Benno Schulenberg authored
Use knowledge of UTF-8 instead of converting to wide characters first.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Any control character is represented by a ^ plus an ASCII character.
-
Benno Schulenberg authored
Instead of showing the upper control codes like this: ^À ^Á ^Â ^Ã ^Ä ^Å ^Æ ^Ç ^È ^É ^Ê ^Ë ^Ì ^Í ^Î ^Ï ^Ð ^Ñ ^Ò ^Ó ^Ô ^Õ ^Ö ^× ^Ø ^Ù ^Ú ^Û ^Ü ^Ý ^Þ ^ß show them like this: ^` ^a ^b ^c ^d ^e ^f ^g ^h ^i ^j ^k ^l ^m ^n ^o ^p ^q ^r ^s ^t ^u ^v ^w ^x ^y ^z ^{ ^| ^} ^~ ^= The lower control codes continue to be shown like this: ^@ ^A ^B ^C ^D ^E ^F ^G ^H ^I ^J ^K ^L ^M ^N ^O ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ^Z ^[ ^\ ^] ^^ ^_ The representation of DEL (0x7F) continues as ^?. Further, use knowledge of UTF-8 to avoid a roundtrip through wide characters.
-
- 07 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
By moving the test for the only situation where do_comment() does nothing (when only the magic line is selected) further up front, the add_undo() can be called before the commenting/uncommenting starts and two variables and an extra function are made unnecessary.
-
- 31 May, 2016 1 commit
-
-
Mike Scalora authored
Store the file sizes from before and after the commenting/uncommenting in the undo struct, so they can be restored when undoing or redoing. This fixes https://savannah.gnu.org/bugs/?48062 . Signed-off-by:
Mike Scalora <mike@scalora.org>
-
- 25 May, 2016 3 commits
-
-
Mike Scalora authored
This allows for commenting or uncommenting a line or a bunch of lines with a single keystroke (default binding: M-3). The characters used for commenting/uncommenting are specified by the active syntax file. Reviewed-by:
Benno Schulenberg <bensberg@justemail.net> Signed-off-by:
Mike Scalora <mike@scalora.org>
-
Benno Schulenberg authored
-
Rishabh Dave authored
Signed-off-by:
Rishabh Dave <rishabhddave@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-