- 18 Dec, 2016 3 commits
-
-
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.
-
- 11 Sep, 2016 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 03 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 30 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 29 Aug, 2016 2 commits
-
-
Benno Schulenberg authored
Mentioning "GNU nano" instead of "This program" and referring to the website instead of to a postal address.
-
Benno Schulenberg authored
-
- 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.)
-
- 26 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 07 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
Instead be more specific and say that the directory is not writable.
-
- 01 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
This addresses https://bugs.debian.org/831636 reported by Christoph Biedl.
-
- 16 Jul, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 14 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?47296.
-
- 13 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 27 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Just like when reading a file fails. It needs the user's attention.
-
- 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 1 commit
-
-
Benno Schulenberg authored
-
- 17 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 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.
-
- 08 Jun, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48103. (The fix is wasteful -- it should only discard the multidata if actually the name *did* change, *and* if the applicable syntax changed.)
-
- 07 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48156.
-
- 04 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Don't catch the NULL earlier, because we do want an error message when opening the lockfile fails.
-