- 19 Jul, 2017 1 commit
-
-
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 6 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
-
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.
-
- 12 Jul, 2017 7 commits
-
-
David Lawrence Ramsey authored
Make them reflect the split into two functions, the direct use of tabsize, and the difference in behavior between indent and unindent.
-
David Lawrence Ramsey authored
Since all indentation and unindentation is by a tab, or by a tab's worth of spaces, use tabsize directly.
-
David Lawrence Ramsey authored
Also remove one unneeded blank line.
-
David Lawrence Ramsey authored
-
David Lawrence Ramsey authored
-
David Lawrence Ramsey authored
The parameter 'cols', that indicates how many columns to indent or unindent, is changed to be always positive, so the check for being negative can go. And it could never be zero anyway.
-
David Lawrence Ramsey authored
This is the first step toward splitting them into two dedicated functions, instead of letting do_indent() handle both cases.
-
- 11 Jul, 2017 2 commits
-
-
Benno Schulenberg authored
The precalculation of the multiline regexes no longer looks at the keyboard every second, and the backup code makes use of futimens() nowadays.
-
Benno Schulenberg authored
Well, it will compile even without that include. :| I don't know why, since it does use va_list.
-
- 10 Jul, 2017 3 commits
-
-
Benno Schulenberg authored
When compiling with 'clang', it would say: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *'.
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
This fixes https://savannah.gnu.org/bugs/?51427.
-
- 09 Jul, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 07 Jul, 2017 4 commits
-
-
Benno Schulenberg authored
In nano, -a is only effective when also -$ is given, so this will not conflict with Pico since Pico does not know the -$ option.
-
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.
-