- 18 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
And which normally is just some ten or twenty characters long, and never gets wildly overallocated.
-
- 15 Dec, 2016 9 commits
-
-
Benno Schulenberg authored
Nano would crash straight afterward if any of these asserts would fail, so they don't add anything. A few others are simply superfluous.
-
Benno Schulenberg authored
Also trim or improve a few comments.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
That is: elide a second test from the most travelled path: a valid character. This adds a second call of mblen() when parse_mbchar() is called on a terminating zero, but that should never happen.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The fsfromline() function is mostly used by the undo functions, which are not present in the tiny version. It is also used by the comment/ uncomment feature, but this feature cannot be enabled when --enable-tiny is in effect.
-
Benno Schulenberg authored
-
- 13 Dec, 2016 6 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Achieve this by eliding two conditions from the inner loop, which is possible because 'end' will never be NULL.
-
David Lawrence Ramsey authored
Instead compute directly whether we're at a softwrapped part or not.
-
David Lawrence Ramsey authored
Convert digits() to take a ssize_t instead of an int, since it's used on ssize_t line numbers. And properly use the long modifier when displaying a line number. Also, conditionalize the digits() prototype.
-
- 12 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 11 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
An added magic linefeed should be removed again /before/ restoring the x position, as the latter needs to be calculated from the real last line of the region. This fixes https://savannah.gnu.org/bugs/?49817 . Reported-by:
Mike Frysinger <vapier@gentoo.org>
-
- 10 Dec, 2016 4 commits
-
-
Benno Schulenberg authored
It is easier to see the order of steps and what the terminating condition is.
-
Benno Schulenberg authored
When wanting to debug something, it is far more useful to temporarily insert lines like: statusline(ALERT, "name = %i", variable); It provides instant feedback, and it slows things down, so you can kind of see what happens.
-
Benno Schulenberg authored
When there are line numbers, the effective available screen width is smaller than COLS: editwincols. This fixes https://savannah.gnu.org/bugs/?49821.
-
Benno Schulenberg authored
Also, be more selective when coloring a git diff line. And color an svn index line too.
-
- 09 Dec, 2016 5 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
This addresses https://savannah.gnu.org/bugs/?49803.
-
David Lawrence Ramsey authored
Like do_down() does already, do_pageup() and do_right() should use editwincols instead of COLS. This addresses https://savannah.gnu.org/bugs/?49796.
-
David Lawrence Ramsey authored
The functions read() and fwrite() take size_t, not ssize_t. And line numbers in the file should be displayed as a long type instead of an int, since the effective type of ssize_t is not int, but long.
-
- 07 Dec, 2016 7 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
(The variable 'pletion_line' is not conditionalized with this option, as it would become messy. The compiler will probably be able to elide it.) When using --enable-tiny, it is not possible to use --enable-wordcomp, because the word completion function uses the undo system.
-
Sumedh Pendurkar authored
Executing the 'complete_a_word' function will search from the start of the current buffer for entire words that begin with the fragment that is before the cursor, and will complete this fragment to the first word that is found. Each consecutive call of 'complete_a_word' will search for the next matching word and will complete the fragment to that. By default the function is bound to the ^] keystroke. Signed-off-by:
Sumedh Pendurkar <sumedh.pendurkar@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 05 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
But do it correctly this time: don't switch it on when replacing.
-
- 04 Dec, 2016 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
None of the prompts offer a total-refresh shortcut -- only the edit window, the help viewer, and the file browser provide this.
-
Benno Schulenberg authored
It's redundant because the call of total_refresh() wipes everything.
-
Benno Schulenberg authored
-