- 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 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 25 May, 2016 1 commit
-
-
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>
-
- 22 May, 2016 1 commit
-
-
Benno Schulenberg authored
Move the initialization of the operating directory to after the initialization of the screen, so that the above error can be shown. This fixes the first part of https://savannah.gnu.org/bugs/?47798.
-
- 21 May, 2016 1 commit
-
-
Benno Schulenberg authored
Error messages about lock files should not get overwritten by purely informational messages, only by alerting ones. This fixes https://savannah.gnu.org/bugs/?47963.
-
- 18 May, 2016 1 commit
-
-
Benno Schulenberg authored
The general mechanism for not allowing important messages to be overwritten will take care of not overwriting warnings about failed file lockings.
-
- 16 May, 2016 2 commits
-
-
Benno Schulenberg authored
If during startup there are multiple error messages, currently only the last one remains and can be read. To improve on that, introduce a short pause between error messages -- even if it's not enough to read them all, at least the user will be aware that there are multiple ones. This also causes a few error messages to beep that currently don't beep, such as when a file is unwritable.
-
Benno Schulenberg authored
-
- 04 May, 2016 1 commit
-
-
Benno Schulenberg authored
Since nano-2.4.1, reading in or pasting a large piece of text would put the cursor on the bottom line, leaving only one line of the non-read or non-pasted text visible. This is different from the centering behavior of Pico, and somewhat disorienting, as you can't see "where you are" any more in relation to the file as it was. So now center the cursor whenever the read or pasted text is larger than the screen, but don't center it when the text fits entirely on the screen. (The latter avoids the effect of the screen jumping unnecessarily when inserting just a few lines while the cursor is near the bottom.) To achieve this behavior: default to focusing, and temporarily set it to FALSE when the focusing effect is unwanted. This fixes https://savannah.gnu.org/bugs/?47841.
-
- 01 May, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 25 Apr, 2016 3 commits
-
-
Benno Schulenberg authored
For a little contrast with the function edit_refresh() -- it's annoying that when you search for the latter you get to see all the settings of the flag too.
-
Benno Schulenberg authored
The function edit_update() is called by edit_refresh() itself, so it is silly that the first sets 'edit_refresh_needed' to TRUE. This setting is needed only in a few cases -- in the others it's not needed because the screen does not need to be refreshed (it was just about positioning the cursor), or 'edit_refresh_needed' has already been set by a call to goto_line_posx(). So, just set the flag in the five places that need it and spare the other four calls.
-
Benno Schulenberg authored
Since commit dac0aa1d, nano would leave edittop at current after reading data from standard input, meaning that everything that had been read in was invisible, "scrolled off" the top of the screen. Correct this by explicitly setting edittop. The above does not happen for ^R (^X) because it has a special mechanism to save and restore edittop. Nor does it happen for ^R ^X M-F because it sets current to the top of the file and refreshing the screen will make edittop follow, or -- in case just one unterminated line was read in -- edittop will already be equal to current.
-
- 17 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?47720.
-
- 12 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 11 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
Instead of saving the current value of placewewant, then setting the new value, and then passing the old value to edit_redraw() in seven different places, just let edit_redraw() do this saving and setting. In the bargain placewewant is now only recalculated when it matters -- when allow_update is TRUE -- and not when it's superfluous.
-
- 07 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
Add a third mode of scrolling, FLOWING, besides CENTERING and STATIONARY. This is used for word and paragraph jumping (and for bracket matching, but that worked correctly already), and only when focusing is FALSE. The new mode prevents the screen from scrolling too many lines when there are several blank lines at the bottom of the edit window and the next word or paragraph is out of view. This fixes https://savannah.gnu.org/bugs/?47194.
-
- 05 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 29 Mar, 2016 1 commit
-
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5770 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-