- 13 Sep, 2017 2 commits
-
-
Benno Schulenberg authored
When multiple files were open and [x/n] was being shown in the title bar, don't show nano's name and version number when just one buffer remains open, but show [1/1] instead. It is less surprising.
-
Marco Diego Aurélio Mesquita authored
When multiple buffers are open, replace nano's name and version number with an indication how many buffers are open preceded by the sequence number of the current buffer. Signed-off-by:
Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@telfort.nl>
-
- 02 Sep, 2017 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51918.
-
- 31 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
And use these constants in another context too.
-
- 26 Aug, 2017 1 commit
-
-
David Lawrence Ramsey authored
Don't skip rows that contain something when moving up, and do put the cursor in the desired column whenever possible when moving down. This fixes http://savannah.gnu.org/bugs/?51827 and fixes http://savannah.gnu.org/bugs/?51828.
-
- 20 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?51802.
-
- 19 Aug, 2017 1 commit
-
-
David Lawrence Ramsey authored
Check the column number, not the character index, when suppressing the line number on chunks other than the first, since the index can be zero when in fact we're on a later chunk. This fixes https://savannah.gnu.org/bugs/index.php?51790.
-
- 18 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 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>
-
- 14 Aug, 2017 4 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
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 1 commit
-
-
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.
-
- 10 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 08 Aug, 2017 2 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>
-
- 06 Aug, 2017 3 commits
-
-
Benno Schulenberg authored
-
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
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
-
- 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
-
- 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
-
- 10 Jul, 2017 1 commit
-
-
David Lawrence Ramsey authored
This fixes https://savannah.gnu.org/bugs/?51427.
-
- 09 Jul, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 07 Jul, 2017 7 commits
-
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
This should eliminate all cases where the newline is pushed off the edge of the screen in non-atblanks softwrap mode. Also, it allows the use of the last column of the screen in atblanks softwrap mode when a piece of text does not contain any blanks. This avoids the unreachable end-of-line reported on the mailing list: http://lists.gnu.org/archive/html/nano-devel/2017-06/msg00011.html.
-
Benno Schulenberg authored
And then elide the function entirely as it's called just once.
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
Extend get_softwrap_breakpoint() to break softwrapped lines on whitespace when a flag is set. This flag is controlled by the new rcfile option "atblanks". The '>' characters marking two-column characters at the edge of the screen are disabled when it's on. If get_softwrap_breakpoint() can't find whitespace in screen range, it will break the line on the screen edge. (In this case, a blank can be on the last column of the screen, but text can't, so that a blank on the last column doesn't become invisible and possibly break the display.) This fulfills https://savannah.gnu.org/bugs/index.php?49959 . Requested-by:
Nicholas Boel <axxisd@gmail.com>
-
David Lawrence Ramsey authored
spotlight() now displays softwrapped lines chunk by chunk instead of all at once. Since softwrapped lines are no longer of constant width, the latter approach would fail if softwrapping breaks the spotlighted text. Instead of taking a string, spotlight() now takes the starting and ending columns of that string. Also, its handling of softwrapped lines is now split off into a separate function, spotlight_softwrapped().
-
David Lawrence Ramsey authored
Add the new function actual_last_column() to accomplish this.
-