- 19 Aug, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51777 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 18 Aug, 2017 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
-
David Lawrence Ramsey authored
Using do_up() and do_end() when the user types <Left> at the start of a line, and do_down() and do_home() when typing <Right> at line's end can be problematic when tabs are wider than the screen, because those functions convert indexes to columns and back again twice, thus causing inaccuracies. Therefore, simply adjust current and current_x directly, and then redraw the screen. This fixes https://savannah.gnu.org/bugs/index.php?51778.
-
- 17 Aug, 2017 3 commits
-
-
David Lawrence Ramsey authored
Regardless of whether the row start is at a multiple of the tab size. This completes the fix for https://savannah.gnu.org/bugs/?51669.
-
David Lawrence Ramsey authored
This fixes https://savannah.gnu.org/bugs/?51770, and fixes https://savannah.gnu.org/bugs/?51768 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
Benno Schulenberg authored
This is a partial fix for https://savannah.gnu.org/bugs/?51770 . Analysis-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 16 Aug, 2017 8 commits
-
-
Benno Schulenberg authored
-
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 5 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.
-