- 06 Dec, 2017 2 commits
-
-
Benno Schulenberg authored
The option now causes nano to trim trailing whitespace also when hardwrapping occurs while the user is typing.
-
Benno Schulenberg authored
This fulfills https://savannah.gnu.org/bugs/?52198.
-
- 03 Dec, 2017 1 commit
-
-
Benno Schulenberg authored
To get rid of two double negatives.
-
- 02 Dec, 2017 5 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The call of do_delete() four lines earlier already does a renumber.
-
Benno Schulenberg authored
When the WAS_FINAL_LINE flag is relevant (when NO_NEWLINES isn't set), the only way for 'current' to be equal to 'filebot' is when 'current_x' is zero.
-
- 30 Nov, 2017 1 commit
-
-
David Lawrence Ramsey authored
This fixes http://savannah.gnu.org/bugs/?52523.
-
- 27 Nov, 2017 1 commit
-
-
Benno Schulenberg authored
When some or all edits have been undone, and the user starts to make new edits, the old part of the undo stack is discarded, but this does not mean that the undo stack doesn't go back to the very beginning. This really fixes https://savannah.gnu.org/bugs/?52504.
-
- 26 Nov, 2017 2 commits
-
-
Benno Schulenberg authored
This also means that no question needs to be asked when exiting. This fixes https://savannah.gnu.org/bugs/?52504 . Reported-by:
Peter Passchier <peter@passchier.net>
-
Benno Schulenberg authored
Otherwise a second justification will cancel it, which is weird.
-
- 22 Nov, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 21 Nov, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The pointer not being NULL is enough indication that the mark is set. Also, rename the pointer from 'mark_begin' to simply 'mark', since the former is kind of pleonastic.
-
Benno Schulenberg authored
Because the highlighting hinders the display of affected lines, and, more importantly, only the highlighted part would be written if the file was modified and the user answers yes to the "Save?" prompt. This fixes https://savannah.gnu.org/bugs/?52474.
-
- 12 Nov, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 10 Nov, 2017 1 commit
-
-
Benno Schulenberg authored
Also, remove an unneeded pair of braces.
-
- 07 Nov, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, diversify them, and no longer mark them for translation.
-
- 01 Nov, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 31 Oct, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 29 Oct, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
In the tiny version, do_prompt() will now have an extra NULL parameter, which will cost maybe twenty extra bytes of code. That is acceptable when it saves thirty lines in the source.
-
- 26 Oct, 2017 1 commit
-
-
Benno Schulenberg authored
This completes the fix for https://savannah.gnu.org/bugs/?52282 . Reported-by:
Chime Hart <chime@hubert-humphrey.com>
-
- 13 Oct, 2017 1 commit
-
-
Viorel Bota authored
Before writing a file out, nano should check that the file on disk hasn't been modified since it was read -- not only for the normal "Write Out" action (^O), but also for "Save File" (future ^S) and for "Save and Exit" (^X when --tempfile is used). When writing fails and --tempfile is in effect, don't go on to prompt for a file name; instead let the user decide what she wants to do. This fixes https://savannah.gnu.org/bugs/?51040 . Signed-off-by:
Viorel Bota <botaviorel@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@telfort.nl>
-
- 22 Sep, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 20 Sep, 2017 1 commit
-
-
Benno Schulenberg authored
The basic idea is that the cursor is always off, except when it needs to be on: when waiting for text input, and in a few other cases: when something was searched and found in the help viewer, and in the file browser when option -g is in effect. This fixes https://savannah.gnu.org/bugs/?51923 . Reported-by:
Mike Frysinger <vapier@gentoo.org>
-
- 12 Sep, 2017 3 commits
-
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
This is modeled after the comment/uncomment code. Each line's individual indent is saved in the string array of the undo group structure. This fixes http://savannah.gnu.org/bugs/?46860.
-
David Lawrence Ramsey authored
The function does not contain any comment-specific code, so it can be used to handle any kind of multiline undo item. Also, extend the undo group structure to contain an array of strings, one for each line in the group. When indent/unindent is hooked up to the undo/redo code, this will allow the latter to restore the exact original indents.
-
- 10 Sep, 2017 5 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, remove an unneeded null_at() -- the null byte has been copied, and reallocating the string would recover very little memory. Also, call charmove() without using the & operator.
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
-
David Lawrence Ramsey authored
This is modeled after the undo/redo code for commenting. do_indent() now calls indent_a_line() on each line it covers. The latter function will eventually be used by the undo/redo code.
-
- 16 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
-