- 12 Jan, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 09 Jan, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 03 Jan, 2017 1 commit
-
-
Benno Schulenberg authored
The conditionalizing saved negligible amounts of space, of memory, and of speed.
-
- 31 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49964.
-
- 27 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
This disallows entering a verbatim ^J (0x0A) when typing text or search terms, and disallows a verbatim ^@ (0x00) when typing a filename. Nano beeps when the disallowed code is attempted. This addresses https://savannah.gnu.org/bugs/?49897.
-
- 23 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
In path names and file names, 0x0A means an embedded newline and should be shown as ^J, but in anything related to the file's data, 0x0A is an encoded NUL and should be displayed as ^@. So... switch mode at the two main entry points into the "file system" (reading in a file, and writing out a file), and also when drawing the titlebar. Switch back to the default mode in the main loop. This fixes https://savannah.gnu.org/bugs/?49893.
-
- 22 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
Also, swap the logic around, to use less braces.
-
- 19 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
There is no need for a counter, nor an old counter to compare it with.
-
Benno Schulenberg authored
For clarity and a tiny bit more speed. Also rename some variables.
-
- 18 Dec, 2016 3 commits
-
-
Benno Schulenberg authored
(I don't /see/ single-letter variables -- they are too small.)
-
Benno Schulenberg authored
The byte 0x0A means 0x00 *only* when it is found in nano's internal representation of a file's data, not when it occurs in a file name. This fixes the second part of https://savannah.gnu.org/bugs/?49867.
-
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
-
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.
-
- 13 Dec, 2016 2 commits
-
-
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.
-
- 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 1 commit
-
-
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.
-
- 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 2 commits
-
-
Benno Schulenberg authored
Achieve this elegantly by factoring out the reading of one rcfile.
-
Benno Schulenberg authored
Also remove some unneeded prototypes, adjust some comments, and move a constant definition to the top of the file.
-
- 27 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 23 Oct, 2016 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This make tiny nano slightly less tiny, but makes the code more readable.
-
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.
-
- 20 Oct, 2016 1 commit
-
-
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 2 commits
-
-
Benno Schulenberg authored
Instead of figuring them out from the string. This is possible because those dedicated editing keys cannot be rebound anyway.
-
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.
-
- 12 Oct, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 13 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
And also case-sensitive searches, backward searches, and searching again.
-
- 02 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 29 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
Mentioning "GNU nano" instead of "This program" and referring to the website instead of to a postal address.
-
- 28 Aug, 2016 2 commits
-
-
Benno Schulenberg authored
Leave the optimization of actual screen writes to ncurses.
-
Benno Schulenberg authored
Add the keycodes and routines to allow the user to forego setting the mark explicitly (with M-A / ^6) and instead quickly select a few words or lines by holding down Shift together with the movement keys. (Some combinations with Shift are swallowed by some terminal emulators. To work around some of those, the combinations Shift+Alt+Left/Right work as Shift+Home/End and Shift+Alt+Up/Down work as Shift+PageUp/PageDown.)
-
- 25 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 14 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48751 reported by Andrew Ho. This also fixes compilation when configured with --enable-tiny.
-
- 07 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
If this breaks your build, please send report or instructions or patch.
-