- 16 Aug, 2017 7 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also rename a variable, to match the saving routine.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also reshuffle an initialization and drop two useless asserts.
-
Benno Schulenberg authored
The preceding 'for' loop has already established that all the lines are either unindentable or composed of only blanks. So if now a line cannot be unindented, it means it is fully blank, so it can be simply skipped. This fixes https://savannah.gnu.org/bugs/?51760 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 15 Aug, 2017 13 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, reduce the scope of the 'line' variable.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, don't depend on statting the relative path, because if that would fail, we would try to open a NULL pointer.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, trim or improve some comments.
-
David Lawrence Ramsey authored
Also, only unindent when all selected lines can be unindented, which means that the relative indentation will be preserved. For this purpose, it ignores empty lines and lines consisting of only whitespace. When unindenting is not possible, a message is shown. This fixes https://savannah.gnu.org/bugs/?47684.
-
David Lawrence Ramsey authored
Instead of inserting the extra whitespace after the current indentation of a line, add it to the start of the line. This causes a fixed amount of visual whitespace to be added regardless of whether --tabstospaces is used or not. This fixes http://savannah.gnu.org/bugs/?51438, and its ancestor https://savannah.gnu.org/bugs/?51408.
-
- 14 Aug, 2017 5 commits
-
-
David Lawrence Ramsey authored
-
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 4 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>
-