- 06 Aug, 2017 4 commits
-
-
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.
-
David Lawrence Ramsey authored
-
- 03 Aug, 2017 1 commit
-
-
Benno Schulenberg authored
Prefer speed above being fully correct. This addresses https://savannah.gnu.org/bugs/?51644.
-
- 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.
-
- 21 Jul, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 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 2 commits
-
-
Benno Schulenberg authored
And reword them too, so that it is clearer what the mechanism is for determining which syntax to use for a file.
-
Benno Schulenberg authored
-
- 14 Jul, 2017 8 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Rename the corresponding rc-file option too, of course.
-
Benno Schulenberg authored
Color it bright green instead, like valid numeric arguments of 'fill' and 'tabsize'. Also color the argument of 'formatter'.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
And in the bargain improve some mark-up here and there.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 13 Jul, 2017 3 commits
-
-
Benno Schulenberg authored
And rewrap the feature toggles, so that a title does not start a sentence.
-
Benno Schulenberg authored
And refer backward instead of forward.
-
Benno Schulenberg authored
-