- 29 Aug, 2016 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Resetting the cutbuffer is irrelevant when 'allow_funcs' is false or when in view mode, so do_input() can just return in those cases.
-
- 28 Aug, 2016 1 commit
-
-
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.)
-
- 17 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48787.
-
- 16 Aug, 2016 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
That is: don't try to look at open files when none are open yet.
-
Benno Schulenberg authored
-
- 15 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48520.
-
- 14 Aug, 2016 2 commits
-
-
Benno Schulenberg authored
-
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 2 commits
-
-
Benno Schulenberg authored
If this breaks your build, please send report or instructions or patch.
-
Benno Schulenberg authored
-
- 02 Aug, 2016 2 commits
-
-
Benno Schulenberg authored
Straightforward code is more important than the tiniest possible binary. Also adjust some comments and rename a variable.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48675.
-
- 31 Jul, 2016 2 commits
-
-
Benno Schulenberg authored
That is a task for the key-getting routine.
-
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.
-
- 27 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 24 Jul, 2016 1 commit
-
-
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
-
- 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
When the user changes her mind after having pressed Esc, she cannot unpress Esc, so do that for her by ignoring the escape code when the subsequent keycode is outside of the normal printable range. This restores the behavior from before nano-2.3.5 -- except that Ctrl+Alt+key continues to report an unbound key. This fixes https://savannah.gnu.org/bugs/?48459.
-
- 12 Jul, 2016 2 commits
-
-
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 1 commit
-
-
Benno Schulenberg authored
This fixes the second part of https://savannah.gnu.org/bugs/?48331 . Reported-by:
Mike Frysinger <vapier@gentoo.org>
-
- 27 Jun, 2016 2 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?47962 reported by Cody Taylor.
-
Benno Schulenberg authored
Do the casting from integer to character rightaway in the first intermediate buffer.
-
- 25 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Keystrokes are single integers (aided by the flags meta_key and func_key) but in the input stream they can be encoded as escape sequences (a series of bytes). Characters are values in byte range, but in UTF-8 one character can consist of multiple bytes. Also rename two variables, because the secondary input buffer that they refer to contains only characters (mostly just one), never any shortcuts; and there are too many "kbinput" already.
-
- 23 Jun, 2016 1 commit
-
-
Jordi Mallach authored
Switch to https and drop the www. prefix for all occurrences of the website URL.
-
- 22 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 21 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Don't make it the responsibility of the executed functions to restore the list of shortcuts of the edit window. Just detect whether another menu was displayed, and if so, redisplay the main menu.
-
- 20 Jun, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 15 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 14 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
To add a character, one does not need to allocate twice its size. And the amount to be moved does not depend on the size of the new character; it just needs to include the terminating zero. (This fixes in do_output() the same logical mistakes that were fixed in do_statusbar_output() last February, in acf19bde and 7c0e4333.)
-
- 13 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 12 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Specifying an operating directory should either lead to a successfull confinement, or nano should fail to start. (Also: save the terminal settings as soon as possible, so that an early die() will not restore uninitialized values.) This fixes the first part of https://savannah.gnu.org/bugs/?47798 properly.
-
- 30 May, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 27 May, 2016 1 commit
-
-
Benno Schulenberg authored
-