- 14 Aug, 2017 4 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51669 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
Benno Schulenberg authored
-
Benno Schulenberg authored
So that these functions have bindings by default, and easy bindings. Add them to the help viewer too, so that searching backward becomes possible there.
-
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 6 commits
-
-
David Lawrence Ramsey authored
Tabs are of variable length depending on position, so allow them to be displayed partially on one chunk and partially on another. This fixes http://savannah.gnu.org/bugs/?51621.
-
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
-
Benno Schulenberg authored
Further, slightly reword an error message so it is appropriate also when an out-of-bounds file is specified on the command line.
-
Benno Schulenberg authored
There is no need to retain the (relative) path that the user specified, so we can simply reuse that variable.
-
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.
-
- 10 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 08 Aug, 2017 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Discarding (in commit 6f9bb53b) the cap on the number of chunks to move backwards had as an unforeseen side effect that the screen can fail to scroll when the cursor is somehow pushed offscreen. Fix this by setting the target row (for smooth scrolling) always to the bottom row of the edit window when nano notices that the cursor has gone offscreen. This fixes https://savannah.gnu.org/bugs/?51676 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The edit subwindow will be completely redrawn twelve lines down, and window_init() takes care of clearing the status bar.
-
- 06 Aug, 2017 8 commits
-
-
David Lawrence Ramsey authored
Match three variable names in the prototypes to the changd ones in their functions in utils.c.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51674 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
Benno Schulenberg authored
The succeeding character was needed to avoid miscolorings due to nano getting confused about starts and ends. But since commit 7ef5c532, nano should be getting the starts and ends always right, so... undo "temporary" commit 7b2ea405 from two years ago. This addresses https://savannah.gnu.org/bugs/?51526. Reported-by: <exodus6395@googlemail.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.
-
David Lawrence Ramsey authored
-
- 03 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
Prefer speed above being fully correct. This addresses https://savannah.gnu.org/bugs/?51644.
-
- 31 Jul, 2017 1 commit
-
-
David Lawrence Ramsey authored
-
- 29 Jul, 2017 2 commits
-
-
Rishabh Dave authored
Include the shortcut for 'Uncut' into most menus, and add an uncut function for the status bar, so that it becomes possible to paste the first line of the cutbuffer at any text-input prompt. This fulfills https://savannah.gnu.org/bugs/?48501 . Requested-by:
Benno Schulenberg <bensberg@telfort.nl> Signed-off-by:
Rishabh Dave <rishabhddave@gmail.com>
-
Benno Schulenberg authored
Assume that a linter line that contains an actual error message or warning includes a colon followed by a space -- something that that opening message from a modern gcc lacks.
-
- 27 Jul, 2017 4 commits
-
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
-
David Lawrence Ramsey authored
A cast on the same line as a variable declaration is superfluous, because it effectively defines the type of the variable twice.
-
Benno Schulenberg authored
-
- 26 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
Human column numbers are one-based, whereas x positions are zero-based. Converting from the one to the other involves subtracting one. But when the linter message does not provide a column number, the latter defaults to zero. Catch that case and change the number to one. This fixes https://savannah.gnu.org/bugs/?51550.
-
- 25 Jul, 2017 1 commit
-
-
David Lawrence Ramsey authored
The charalloc() macro does exactly this.
-
- 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.
-
- 23 Jul, 2017 1 commit
-
-
David Lawrence Ramsey authored
The function place_the_cursor() assumes that the viewport is up to date, i.e., that current is in range of edittop. When uncutting or inserting, however, place_the_cursor() gets called on the out-of-date viewport first, and then a screen refresh is scheduled (which would put the viewport up to date). This is backwards: the refresh should come before the cursor placement, and the only reason it works anyway is because the cap on the number of chunks to move backward papers over the problem by keeping current_y in screen range regardless. Fix this properly by simply setting current_y to the bottom row of the screen instead of calling place_the_cursor(). This value of current_y is only ever used when in smooth scrolling mode and the insertion (or paste) pushed the cursor offscreen. In other situations, this value is overridden when place_the_cursor() gets called after a screen refresh. After that fix, the cap on the number of chunks to move backward is no longer needed.
-
- 21 Jul, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 20 Jul, 2017 2 commits
-
-
David Lawrence Ramsey authored
A line can only be partially offscreen when doing softwrapping.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51514.
-
- 19 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
This improves https://savannah.gnu.org/bugs/?51479 for the +-1 case.
-