- 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 2 commits
-
-
Benno Schulenberg authored
To get rid of two double negatives.
-
Benno Schulenberg authored
It's better to color some invalid things as if valid than the other way around. So, as strings can validly contain any number of double quotes, just accept *anything* between the delimiting double quotes and demand that the closing quote is followed by whitespace or EOL.
-
- 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 2 commits
-
-
Benno Schulenberg authored
This addresses https://savannah.gnu.org/bugs/?52546 . Reported-by:
Marius Schamschula <mschamschula@gmail.com>
-
David Lawrence Ramsey authored
This fixes http://savannah.gnu.org/bugs/?52523.
-
- 27 Nov, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
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 8 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?52519.
-
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
-
Benno Schulenberg authored
On a freshly installed system, or for a new user, the default XDG data directory may not exist yet. So, create it when not. Reported-by:
Brand Huntsman <alpha@qzx.com>
-
Benno Schulenberg authored
Otherwise a second justification will cancel it, which is weird.
-
Benno Schulenberg authored
The softmark is now only cancelled when the cursor is moved without Shift being held, not for things like ^L (Refresh), ^C (Position), or ^G (Help). This addresses https://savannah.gnu.org/bugs/?52470.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
When a file is closed with the cursor on line 1, column 1, this position is not recorded in file-positions history file -- if a record for the file existed, it is deleted. In the latter case the history file needs to be saved, so that other instances of nano will know about the deletion. This fixes https://savannah.gnu.org/bugs/?52505.
-
- 23 Nov, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 22 Nov, 2017 3 commits
-
-
Benno Schulenberg authored
Otherwise we would overwrite the current file with just the selection. This fixes https://savannah.gnu.org/bugs/?52482.
-
Benno Schulenberg authored
-
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.
-
- 20 Nov, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
While doing that, move the affected function to the utils.c file and tweak it a bit. This fixes https://savannah.gnu.org/bugs/?52468.
-
- 19 Nov, 2017 1 commit
-
-
Benno Schulenberg authored
Since file-5.10 (end of 2011), libmagic identifies a C file in most cases as "C source" instead of as "C program". Nano's magic strings for some other files didn't match any more what file-5.32 currently produces, either. So, they have been adjusted, new ones added, and old ones deleted. This fixes https://savannah.gnu.org/bugs/?52445.
-
- 18 Nov, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 17 Nov, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 13 Nov, 2017 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
This fixes https://savannah.gnu.org/bugs/?52392.
-
Benno Schulenberg authored
Adding the obscure A_PROTECT attribute to every color prevents an occasional miscoloring of the first few rows on the screen -- when ncurses is version 6.0 and dates from before October 17, 2015. Original-idea-by:
Brand Huntsman <alpha@qzx.com> Tested-by:
Brand Huntsman <alpha@qzx.com> This fixes https://savannah.gnu.org/bugs/?52182.
-