- 01 May, 2017 9 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, reshuffle two initializations to go sit with the other ones.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The bottomwin has just been refreshed by update_the_statusbar(), and it should not be the responsibility of the prompt routines to keep the edit window up to date, as they don't write anything there.
-
Benno Schulenberg authored
Things have morphed over time and display_buffer() no longer actually displays the buffer -- it just displays the title bar, precalculates the multiline color info, and schedules a refresh of the edit window.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also, avoid an unused-variable warning when configured with --enable-tiny --enable-help --enable-multibuffer.
-
- 30 Apr, 2017 8 commits
-
-
Benno Schulenberg authored
Searching for an empty string should be impossible, it should never happen, but it is bit too hard to verify this at the moment.
-
Benno Schulenberg authored
If the length of the haystack is smaller than the length of the needle, this means that also the length of the tail will be smaller -- because pointer will be bigger than or equal to haystack -- so the pointer gets readjusted to be a needle length before the end of the haystack, which means that it ends up /before/ the haystack: thus the while loop will never run. On average, this saves some 200 nanoseconds per line.
-
Benno Schulenberg authored
Because it is slightly faster.
-
Benno Schulenberg authored
It is not an index, it is not an offset from anything, it is a direct pointer.
-
Benno Schulenberg authored
And because I think it looks slightly better.
-
Benno Schulenberg authored
This avoids https://savannah.gnu.org/bugs/?49912 while at the same time avoiding to draw the edit window twice in a row -- the first drawing would use a wrong margin, which results in a visible and irritating shift left or right of the content upon the second drawing. This fixes https://savannah.gnu.org/bugs/?50877.
-
Benno Schulenberg authored
We should measure the length of each /translated/ shortcut description, not of the original English one. This fixes https://savannah.gnu.org/bugs/?50899.
-
Benno Schulenberg authored
This addresses https://savannah.gnu.org/bugs/?50897 . Reported-by:
Hannu Nyman <hannu.nyman@iki.fi>
-
- 28 Apr, 2017 8 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This elides a counter and a comparison from the central loop, and thus makes the search a tiny bit faster.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
And one-letter variables I cannot "see" -- they are too small.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
An iterator should not be called "start_col", because it is only the starting column at the very beginning. Also, start_col (after the rename) can never be /larger/ than column.
-
Benno Schulenberg authored
The mbwidth() function itself checks whether UTF-8 is being used and does the right thing.
-
- 26 Apr, 2017 4 commits
-
-
Benno Schulenberg authored
Backspace is a more logical counterpart of Space than minus.
-
Benno Schulenberg authored
Also, harmonize some configure-option descriptions, add a slash after a subdir, and fix a typo.
-
Benno Schulenberg authored
Also, add two missing configure options, and frob some other things.
-
Benno Schulenberg authored
It complained of "Unbound key" until now.
-
- 25 Apr, 2017 11 commits
-
-
Benno Schulenberg authored
That is: nest the conditions consistently. And in the bargain rename the variable.
-
Benno Schulenberg authored
Also, mention that help texts can now be searched through, update a copyright notice, and update and simplify a copyright year.
-
Benno Schulenberg authored
And in the process transform the token DISABLE_HELP to ENABLE_HELP.
-
Benno Schulenberg authored
This avoids applying the default syntax, or the syntax specified with --syntax, to a ^G help text.
-
Benno Schulenberg authored
And allow 'N' for searching the next occurrence. Add the same keystrokes to the file browser too, for consistency.
-
Benno Schulenberg authored
Since the help text is searchable, an <End> would go to the end of the text but would leave a blank line above the statusbar -- a blank line that wasn't there before, and that is not reached when simply holding down <Down> all the way from the top.
-
Benno Schulenberg authored
So that the shortcut explanations get properly aligned.
-
Benno Schulenberg authored
When nano has multiple files open, closing a help buffer should not switch to the next buffer in the ring but to the preceding one, because it was from there that the help screen was invoked.
-
Benno Schulenberg authored
Also, save and restore all the flags in a single swoop.
-
Benno Schulenberg authored
There is no need to restore NOREAD_MODE after unsetting it, because any files mentioned on the command line have already been /not/ read.
-
Benno Schulenberg authored
-