- 06 Jan, 2017 1 commit
-
-
David Lawrence Ramsey authored
Instead of setting openfile->current_y (and wrongly so), just call reset_cursor() to recompute current_y and place the cursor on that line (if it is not offscreen).
-
- 03 Jan, 2017 1 commit
-
-
Benno Schulenberg authored
The conditionalizing saved negligible amounts of space, of memory, and of speed.
-
- 01 Jan, 2017 2 commits
-
-
Benno Schulenberg authored
This makes nano's cursor behavior consistent across 1) typing text by hand; 2) pasting in text with ^U; 3) inserting text from a file; and 4) redoing with M-E that same typing or pasting or inserting. This fixes https://savannah.gnu.org/bugs/?49968.
-
Benno Schulenberg authored
-
- 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.
-
- 26 Dec, 2016 3 commits
-
-
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
-
Benno Schulenberg authored
-
- 23 Dec, 2016 4 commits
-
-
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 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49884.
-
- 21 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 19 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
Taking the terminating newline into account, and that there is at least one digit per number.
-
- 18 Dec, 2016 12 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.
-
Benno Schulenberg authored
Because changing anything to a null effectively means to truncate the name. This fixes https://savannah.gnu.org/bugs/?49868 and fixes https://savannah.gnu.org/bugs/?49874.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Most full paths are needed only temporarily and will be freed within milliseconds. Only 'full_operating_dir' and 'backup_dir' continue to exist for the whole current session. Any partition, too, will soon be unpartitioned, so the extra reallocation is just a waste of time.
-
Benno Schulenberg authored
It doesn't align anything -- any allocations are already aligned to whatever multiple is required -- it just shrinks the allocated space.
-
Benno Schulenberg authored
And which normally is just some ten or twenty characters long, and never gets wildly overallocated.
-
- 15 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
Nano would crash straight afterward if any of these asserts would fail, so they don't add anything. A few others are simply superfluous.
-
- 09 Dec, 2016 1 commit
-
-
David Lawrence Ramsey authored
The functions read() and fwrite() take size_t, not ssize_t. And line numbers in the file should be displayed as a long type instead of an int, since the effective type of ssize_t is not int, but long.
-
- 07 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 04 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 01 Dec, 2016 1 commit
-
-
David Lawrence Ramsey authored
This fixes https://savannah.gnu.org/bugs/?48622.
-
- 29 Nov, 2016 1 commit
-
-
David Lawrence Ramsey authored
Achieve this by reusing the code that gives feedback when trying to save a buffer while using --tempfile and the file has no name yet. This fixes https://savannah.gnu.org/bugs/?48622.
-
- 26 Nov, 2016 2 commits
-
-
Benno Schulenberg authored
Also improve or correct some comments.
-
Benno Schulenberg authored
If it would, the returned file descriptor would make nano crash, because the corresponding stream has not been opened. And when returning zero instead (as the code did originally), nano would open an empty buffer, although it claims to be reading the file. In short: I think this is a leftover of an attempted fix of https://savannah.gnu.org/bugs/?25297, from commit 2823c99e.
-
- 27 Oct, 2016 2 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49423.
-
Benno Schulenberg authored
Also remove some cluttering conditional compilation.
-
- 23 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 21 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
Instead of doing this in two places: after interpreting shortcuts, and after injecting characters.
-