- 22 Mar, 2018 3 commits
-
-
Benno Schulenberg authored
In the preceding commit, open_buffer() was changed so that it gets told whether to load into a new buffer or not, so it is no longer needed to convey this information through a flag.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 20 Mar, 2018 4 commits
-
-
Benno Schulenberg authored
And also prevent a theoretical crash for restricted prompt functions.
-
Kamil Dudka authored
This fixes a regression introduced by commit 54103d8e: a crash that can be triggered by running 'nano --restrict' and pressing <Insert>. This addresses https://bugzilla.redhat.com/1558532.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
When the file has just been read, it is in the state that it has on disk, so there is nothing to undo. This fixes https://savannah.gnu.org/bugs/?53387.
-
- 19 Mar, 2018 1 commit
-
-
Liu Hao authored
Signed-off-by:
Liu Hao <lh_mouse@126.com>
-
- 18 Mar, 2018 4 commits
-
-
Benno Schulenberg authored
When the cursor is on the first or last row of the edit window, and thus Scroll-Down or Scroll-Up would push it offscreen, first move the cursor away from the edge row and then scroll. This fixes https://savannah.gnu.org/bugs/?53376.
-
David Lawrence Ramsey authored
This avoids a bunch of warnings when compiled with -pedantic: ISO C forbids comparison of ‘void *’ with function pointer
-
Benno Schulenberg authored
-
Benno Schulenberg authored
As, since commit 0e30177d, the scrollup and scrolldown commands no longer intend to move the cursor, they should not be seen as movement functions. Also, it is not guaranteed that functions are ordered in the same way in the binary as in the source code, so an ordered comparison of function pointers will not always work. This fixes https://savannah.gnu.org/bugs/?53333.
-
- 17 Mar, 2018 5 commits
-
-
Benno Schulenberg authored
Reported-by:
Brand Huntsman <alpha@qzx.com>
-
Benno Schulenberg authored
-
Benno Schulenberg authored
When just scrolling and the cursor does not need to change position (that is: it is not on the first or last row of the edit window), then edit_scroll() has handled everything and there is no need to additionally redraw anything or update 'placewewant'.
-
Benno Schulenberg authored
Also, rename a parameter and invert its logic.
-
Benno Schulenberg authored
Instead of keeping the cursor in the same spot on the screen, let the cursor move with the text (whenever possible). This makes these functions behave the same as in Vim and Emacs.
-
- 12 Mar, 2018 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Make them smaller to make them sound less like shouting.
-
Benno Schulenberg authored
This kind of addresses https://savannah.gnu.org/bugs/?53310.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?53317 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 11 Mar, 2018 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?53269 . Reported-by:
Ashish Kunwar <dorkerdevil280@gmail.com> The leak was mistakenly introduced by commit dc3618a1 -- probably as a leftover of testing things.
-
- 10 Mar, 2018 1 commit
-
-
Benno Schulenberg authored
And adjust the comments accordingly.
-
- 09 Mar, 2018 1 commit
-
-
Benno Schulenberg authored
Help texts are shown without any line numbers, so the full width of the screen should be used to display the text. This fixes https://savannah.gnu.org/bugs/?53308.
-
- 08 Mar, 2018 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 06 Mar, 2018 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 05 Mar, 2018 8 commits
-
-
Brand Huntsman authored
Signed-off-by:
Brand Huntsman <alpha@qzx.com>
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
First the two that add something (ADD, ENTER), then the three that delete something (BACK, DEL, JOIN), and then the one that changes something (REPLACE). Then the SPLITs, CUT, PASTE, and INSERT, and then the INDENTs and COMMENTs, when they exist.
-
Benno Schulenberg authored
-
- 04 Mar, 2018 1 commit
-
-
Benno Schulenberg authored
For cuts, pastes, and inserts, the lines have already been renumbered; for indents, comments, and replacements, the line numbers cannot have changed. (And anyway, variable 'f' is not set for those cases.) Only when lines get split (ENTER) or fused together (JOIN) do the later lines need to be renumbered. This mirrors what is done for do_redo().
-
- 03 Mar, 2018 2 commits
-
-
Benno Schulenberg authored
The 'f' variable is used only in the ADD, BACK, DEL, ENTER, JOIN, and REPLACE undo/redo cases. So, avoid making a somewhat costly call when it is entirely superfluous. Rearrange the undo types to make checking for the above six types easier.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?53272.
-