- 26 Nov, 2017 3 commits
-
-
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 5 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.
-
Benno Schulenberg authored
When there are no help lines, there won't be any call to update the actual contents of the bottom window, so... do it immediately after blanking the row. This fixes https://savannah.gnu.org/bugs/?52377.
-
- 12 Nov, 2017 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 11 Nov, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 10 Nov, 2017 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, remove an unneeded pair of braces.
-
Marco Diego Aurélio Mesquita authored
Signed-off-by:
Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
-
Benno Schulenberg authored
-
- 08 Nov, 2017 4 commits
-
-
Benno Schulenberg authored
One should test a change before pushing, also when it worked last time.
-
Benno Schulenberg authored
-
Brand Huntsman authored
Whenever a buffer is closed, check whether the positions file on disk was modified, and if so, reload it. Then update the position for the closed buffer and write out the positions file to disk. Signed-off-by:
Brand Huntsman <alpha@qzx.com> Signed-off-by:
Benno Schulenberg <bensberg@telfort.nl>
-
Lion Yang authored
The function get_key_buffer() assumes waiting_mode = TRUE, but stdin can be in non-blocking mode when a program (before nano) turned stdin to non-blocking mode and did not change it back (possibly because it crashed). So, explicitly set stdin to blocking mode at startup. Signed-off-by:
Lion Yang <lion@aosc.io>
-
- 07 Nov, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, diversify them, and no longer mark them for translation.
-
David Lawrence Ramsey authored
Also, properly refer to numreplaced as signed, since it's ssize_t (even though it's only shown when positive).
-