- 19 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
There is no need for a counter, nor an old counter to compare it with.
-
- 18 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
Most full paths are needed only temporarily and will be freed within milliseconds. Only 'full_operating_dir' and 'backup_dir' continue to exist for the whole current session. Any partition, too, will soon be unpartitioned, so the extra reallocation is just a waste of time.
-
Benno Schulenberg authored
It doesn't align anything -- any allocations are already aligned to whatever multiple is required -- it just shrinks the allocated space.
-
- 15 Dec, 2016 2 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
-
- 10 Dec, 2016 3 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.
-
- 07 Dec, 2016 2 commits
-
-
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>
-
- 04 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
It's redundant because the call of total_refresh() wipes everything.
-
Benno Schulenberg authored
-
- 03 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49750.
-
Benno Schulenberg authored
-
- 02 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 29 Nov, 2016 1 commit
-
-
David Lawrence Ramsey authored
Achieve this by reusing the code that gives feedback when trying to save a buffer while using --tempfile and the file has no name yet. This fixes https://savannah.gnu.org/bugs/?48622.
-
- 27 Nov, 2016 1 commit
-
-
Benno Schulenberg authored
Achieve this elegantly by factoring out the reading of one rcfile.
-
- 17 Nov, 2016 2 commits
-
-
Benno Schulenberg authored
Kind-of-discovered-by:
Markus Bergholz <markuman@gmail.com>
-
Benno Schulenberg authored
Also when somehow key_defined() is missing. This fixes https://savannah.gnu.org/bugs/?49614 . Reported-by:
Mike Frysinger <vapier@gentoo.org>
-
- 13 Nov, 2016 2 commits
-
-
Benno Schulenberg authored
(Bug was introduced yesterday, by commit a4132e2e.)
-
Benno Schulenberg authored
This fixes the two bugs reported by Anton Minaev in https://savannah.gnu.org/bugs/?49511.
-
- 12 Nov, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49530.
-
- 28 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
When giving a line number on the command line, do_gotolinecolumn() needs to know the width of the screen to be able to (roughly) place the target line in the center of the screen. This fixes https://savannah.gnu.org/bugs/?49462.
-
- 27 Oct, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The nanorc option already exists, but not the corresponding one for the command line.
-
- 24 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49428.
-
- 23 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
It does not update anything -- it just picks a new point from where to start displaying the buffer. All actual updating of the screen is done by edit_refresh() and edit_redraw() and such.
-
- 21 Oct, 2016 3 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49406.
-
Benno Schulenberg authored
There is no need to look at this for every painted line, because the margin can only change when some key is struck.
-
Benno Schulenberg authored
Instead of doing this in two places: after interpreting shortcuts, and after injecting characters.
-
- 20 Oct, 2016 2 commits
-
-
Benno Schulenberg authored
-
Faissal Bensefia authored
It can be activated with --linenumbers on the command line or with 'set linenumbers' in a nanorc file, and it can be toggled with M-#. Signed-off-by:
Faissal Bensefia <faissaloo@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 18 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49099, and fixes the unreported corresponding bugs for <End> and <Del> and typing extra characters.
-
- 13 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
And also case-sensitive searches, backward searches, and searching again.
-
- 03 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 02 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 30 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 29 Aug, 2016 2 commits
-
-
Benno Schulenberg authored
Mentioning "GNU nano" instead of "This program" and referring to the website instead of to a postal address.
-
Benno Schulenberg authored
-