- 13 Aug, 2017 3 commits
-
-
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 3 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
The edit subwindow will be completely redrawn twelve lines down, and window_init() takes care of clearing the status bar.
-
- 06 Aug, 2017 6 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>
-
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.
-
- 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.
-
- 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 2 commits
-
-
Benno Schulenberg authored
This improves https://savannah.gnu.org/bugs/?51479 for the +-1 case.
-
David Lawrence Ramsey authored
-
- 18 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
When not using --smooth (nor 'set smooth'), and a line near or beyond the end-of-file is addressed with the + command-line argument, then center the cursor, just like Pico does -- so in the default mode, nano is again more like Pico. This partially addresses https://savannah.gnu.org/bugs/?51489.
-
- 17 Jul, 2017 3 commits
-
-
Benno Schulenberg authored
Counting the added number of rows is only relevant when inserting a file into the current buffer. So don't waste time counting when it's not needed. This fixes https://savannah.gnu.org/bugs/?51479.
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
Since commit 8490f4ac, get_edge_and_target() depends on an up-to-date current_x. So: make sure current_x is updated when we move to the top left of the screen to start a non-smooth PageUp or PageDown. This fixes https://savannah.gnu.org/bugs/?51480.
-
- 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.
-
- 15 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 14 Jul, 2017 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Rename the corresponding rc-file option too, of course.
-
- 13 Jul, 2017 3 commits
-
-
Benno Schulenberg authored
I like it better that ^X stays in the same position compared to the main screen: the lower left corner.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51457.
-
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.
-