- 29 Dec, 2016 1 commit
-
-
Felix Janda authored
URL: https://bugs.gentoo.org/604000
-
- 28 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
The warning is wrong when the user has just saved a buffer under a new name. And when --quickblank is used, the warning most likely gets cleared off before it is seen, and the user would just hear the beep and be left wondering what happened. This avoids https://savannah.gnu.org/bugs/?49875.
-
- 27 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
This disallows entering a verbatim ^J (0x0A) when typing text or search terms, and disallows a verbatim ^@ (0x00) when typing a filename. Nano beeps when the disallowed code is attempted. This addresses https://savannah.gnu.org/bugs/?49897.
-
- 26 Dec, 2016 7 commits
-
-
Benno Schulenberg authored
A KEY_WINCH does not need to be separately treated since the basic action for anything that is not recognized at the yes-no prompt is: to continue.
-
Benno Schulenberg authored
Also at the yes-no prompt, a 0x0A byte should be displayed as a ^J instead of splitting the prompt bar in two and spreading it over two lines. This fixes https://savannah.gnu.org/bugs/?49934.
-
Benno Schulenberg authored
When a given file is, for example, unreadable or unwritable, the error message should use ^J instead of ^@ in its name.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49933.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 25 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 24 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
After a call to the Formatter or the Alternate spell checker, the data on the undo stack could refer to line positions that don't exist any more -- the chance is small, but it is there. So... throw the whole undo stack away, to prevent undoing things wrongly or even crashing. (Changes made with the internal spell checker can be undone and redone without a problem -- nano keeps full track of those. But the changes made with a formatter or an external spell checker happen in another process, so nano has no record of them.) This fixes https://savannah.gnu.org/bugs/?49920.
-
Benno Schulenberg authored
When using an external spell checker or formatter, the line with the cursor might become shorter, which might result in the stored cursor position being beyond the end-of-line. So, when restoring the x position, make sure to limit it to the length of the line. This fixes https://savannah.gnu.org/bugs/?49923.
-
- 23 Dec, 2016 5 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
In path names and file names, 0x0A means an embedded newline and should be shown as ^J, but in anything related to the file's data, 0x0A is an encoded NUL and should be displayed as ^@. So... switch mode at the two main entry points into the "file system" (reading in a file, and writing out a file), and also when drawing the titlebar. Switch back to the default mode in the main loop. This fixes https://savannah.gnu.org/bugs/?49893.
-
Benno Schulenberg authored
Decode 0x0A bytes to 0x00 when saving the search history, and encode them again when reading the file back in, to prevent nano from hanging or aborting when encountering 0x00 on a line by itself.
-
Benno Schulenberg authored
After updating the color palette, the corresponding new window content should be drawn immediately, before some other part of the code calls doupdate(), to prevent the old content being shown in the new colors. This fixes https://savannah.gnu.org/bugs/?49912 . Reported-by:
Mike Frysinger <vapier@gentoo.org>
-
- 22 Dec, 2016 6 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49884.
-
Benno Schulenberg authored
And certainly don't return zero when the key wouldn't have been found, because that would have meant jumping a word to the right.
-
Benno Schulenberg authored
Also, swap the logic around, to use less braces.
-
Benno Schulenberg authored
Which is possible because those keycodes are hard-bound to the relevant functions.
-
Benno Schulenberg authored
In nano 2.7.1 and 2.7.2, pressing Shift+Ctrl+Arrow on a Linux console would behave as if Shift wasn't held. It got broken three months ago, by commit 08cd197b, messing up the proper order of the checks. This fixes https://savannah.gnu.org/bugs/?49906.
-
- 21 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
On some systems, typing ^C apparently results in a KEY_CANCEL in the input stream, which gets hard-bound to the do_cancel function. But in the main menu there is no Cancel function. So... in that case, let it fall back to the plain old Ctrl-C code: 0x03. Reported-by:
Liam Gretton <liam.gretton@leicester.ac.uk>
-
Benno Schulenberg authored
-
- 20 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 19 Dec, 2016 5 commits
-
-
Benno Schulenberg authored
A third method does not exist.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
There is no need for a counter, nor an old counter to compare it with.
-
Benno Schulenberg authored
Taking the terminating newline into account, and that there is at least one digit per number.
-
Benno Schulenberg authored
For clarity and a tiny bit more speed. Also rename some variables.
-
- 18 Dec, 2016 7 commits
-
-
Benno Schulenberg authored
A filename might contain spaces, so we can't look for the numbers (the second and third elements) starting from the head of the line -- we have to start at the tail and work backward. This fixes https://savannah.gnu.org/bugs/?49879.
-
Benno Schulenberg authored
(I don't /see/ single-letter variables -- they are too small.)
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
It is irrelevant -- the line is discarded as soon as the data has been extracted.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
So they will not break a line in the positionlog file in two. (Strangely, the reading in of such a log file already decodes nulls back into newlines.) This fixes https://savannah.gnu.org/bugs/?49877.
-