- 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>
-
- 17 Sep, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 13 Sep, 2017 1 commit
-
-
Marco Diego Aurélio Mesquita authored
When multiple buffers are open, replace nano's name and version number with an indication how many buffers are open preceded by the sequence number of the current buffer. Signed-off-by:
Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@telfort.nl>
-
- 18 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 14 Aug, 2017 1 commit
-
-
Urja Rannikko authored
This also fixes https://savannah.gnu.org/bugs/?51735 . Reported-by:
Urja Rannikko <urjaman@gmail.com> Signed-off-by:
Urja Rannikko <urjaman@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@telfort.nl>
-
- 13 Aug, 2017 2 commits
-
-
David Lawrence Ramsey authored
Adding text plus whitespace while the cursor is at or near the topleft corner of the edit window can cause a change in the preceding chunk, throwing firstcolumn out of alignment. Catch this special case. This fixes http://savannah.gnu.org/bugs/?51743.
-
Benno Schulenberg authored
It would be horrible if the user expects to find numbered backups of all the files that were changed but they are NOT there because the config file contains a typo or the relevant directory was moved or renamed or something. So... if the specified backup directory is not usable, nano should complain and simply not start up.
-
- 06 Aug, 2017 5 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51674 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
David Lawrence Ramsey authored
The new option 'set selectedcolor' applies to marked text, to the currently selected file in the file browser, and to the highlighted match during interactive search-and-replace.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Without them, nano still compiles for me, with everything enabled, even when using --enable-debug, --enable-utf8, and --with-slang.
-
- 24 Jul, 2017 1 commit
-
-
David Lawrence Ramsey authored
Commit 28beb3f9 added the 'forreal' parameter to prevent spotlight() from placing the cursor wrongly due to an invalid placewewant. However, since the variable-width softwrap overhaul (specifically, since commit 8490f4ac), place_the_cursor() no longer checks placewewant, so the parameter is no longer needed. Furthermore, dropping 'forreal' and thus always setting current_y won't affect the operation of spotlight(), since the only functions that use spotlight() (do_replace_loop() and do_int_spell_fix()) both call edit_refresh() beforehand, which means that current_y will already have been set to the value it will be set to again.
-
- 16 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
For some reason, when returning from suspension, SLang will produce either a clipped error code (0xFF instead of 0xFFFF, when returning from an externally induced suspension), or it will clip the code of first subsequent keystroke to a single byte (when returning from a normal, in-editor suspension: ^Z). Side-step this by ignoring the clipped error code, and by using an undefined control code as the first fake keystroke. Ignoring the clipped error code is not possible when using a single-byte locale, otherwise the user would not be able to type the character with code 0xFF (although it could still be entered with Esc Esc 255). This fixes https://savannah.gnu.org/bugs/?51477.
-
- 14 Jul, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Rename the corresponding rc-file option too, of course.
-
- 13 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
The help lines need to be redrawn one step after a justification (whether it has been undone or not, to replace "Unjustify" with "Uncut" again for ^U), and after switching buffers (to update a possibly changed tag for ^T). This fixes https://savannah.gnu.org/bugs/?51455.
-
- 09 Jul, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 07 Jul, 2017 3 commits
-
-
Benno Schulenberg authored
In nano, -a is only effective when also -$ is given, so this will not conflict with Pico since Pico does not know the -$ option.
-
David Lawrence Ramsey authored
Add the new function actual_last_column() to accomplish this.
-
David Lawrence Ramsey authored
get_chunk_row() replaces the formula "column / editwincols". get_chunk_leftedge() replaces "(column / editwincols) * editwincols". get_last_chunk_row() replaces "strlenpt() / editwincols". get_last_chunk_leftedge() replaces "(strlenpt() / editwincols) * editwincols". This prepares us for any changes in those formulas, and for more such functions later.
-
- 02 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
(Well, redraw them when they're switched on, of course.) Redraw them so that they are shown correctly if their content changed. This fixes https://savannah.gnu.org/bugs/?51356. and fixes https://savannah.gnu.org/bugs/?51357.
-
- 30 Jun, 2017 2 commits
-
-
David Lawrence Ramsey authored
-
Benno Schulenberg authored
The extra variable is not needed, because when having read from standard input, the filename will simply be empty. It will not be empty for any other file that was read.
-
- 23 Jun, 2017 6 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
They can be given at the prompt, so it's better to accept them on the command line too.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also improve some comments.
-
Benno Schulenberg authored
-
- 22 Jun, 2017 1 commit
-
-
Benno Schulenberg authored
And rename the function while there anyway.
-
- 20 Jun, 2017 1 commit
-
-
Benno Schulenberg authored
A recent change (8dffb00f) removed this ability. This change restores it, and also allows reading from standard input multiple times -- maybe not useful, but it works.
-
- 18 Jun, 2017 5 commits
-
-
Benno Schulenberg authored
Also, conditionalize a statement that is only effective when multiple file buffers are available.
-
Benno Schulenberg authored
Also, shorten two variable names.
-
Benno Schulenberg authored
This reduction is possible since the routine no longer loops when it encounters a +NUMBER argument.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also when a dash is the first "file" mentioned on the command line, nano should show this buffer at startup and not the next. This fixes https://savannah.gnu.org/bugs/?51207.
-
- 08 Jun, 2017 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51206.
-
- 07 Jun, 2017 1 commit
-
-
Benno Schulenberg authored
Reading from standard input is a purely sequential affair -- no need to split it into two functions.
-