- 10 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
Replace them by a single subtraction.
-
- 09 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
The interval 2013-2017 for the Free Software Foundation is valid because in those years there were releases with changes by either Chris or David, and the GNU maintainers guide advises to mention a new year in all files of a package, not just in the ones that actually changed, and be done with it for the rest of the year.
-
- 04 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
Verify at startup that the number is not too small.
-
- 22 Mar, 2017 1 commit
-
-
David Lawrence Ramsey authored
In softwrap mode, nano doesn't horizontally scroll lines at all, so in this case get_page_start() should always return zero.
-
- 06 Mar, 2017 3 commits
-
-
Mike Frysinger authored
Windows doesn't have *nix style account databases.
-
Mike Frysinger authored
Now that we pull in the gnulib regex module, we can assume it exists.
-
Mike Frysinger authored
Switch over to gnulib for these.
-
- 24 Feb, 2017 1 commit
-
-
Benno Schulenberg authored
Give the strlenpt() routine its own implementation, so that it avoids a needless comparison plus subtraction in the inner loop.
-
- 12 Feb, 2017 1 commit
-
-
David Lawrence Ramsey authored
These two functions unnecessarily copy make_new_node(); use that instead.
-
- 26 Jan, 2017 1 commit
-
-
Benno Schulenberg authored
That is: remove the special treatment of BOW anchors, and instead make regexes match against the whole line instead of against an artificially shortened one, because the latter method creates ghost matches: matches at the starting point of the search that aren't really matches when seen in the context of the whole line. This fixes https://savannah.gnu.org/bugs/?50030.
-
- 19 Jan, 2017 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?50028.
-
- 17 Jan, 2017 1 commit
-
-
Benno Schulenberg authored
A search should start at the place of the cursor, not one step beyond, so that the non-word boundary between the current character and the next will be found. Starting one step beyond the current character, as was done until now, would find the non-word boundary between the next and the overnext character as the first one.
-
- 11 Jan, 2017 1 commit
-
-
Benno Schulenberg authored
What is the point of parsing a number when you're not interested in the result? All callers of parse_num() pass a container for it.
-
- 26 Dec, 2016 3 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49933.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 18 Dec, 2016 1 commit
-
-
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 3 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
-
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
-
-
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
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.
-
- 09 Dec, 2016 1 commit
-
-
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.
-
- 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>
-
- 13 Sep, 2016 1 commit
-
-
Benno Schulenberg authored
And also case-sensitive searches, backward searches, and searching again.
-
- 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
-
- 03 Aug, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48660.
-
- 13 Jul, 2016 2 commits
-
-
Benno Schulenberg authored
This allows the user to specify which other characters, besides the default alphanumeric ones, should be considered as part of a word, so that word operations like Ctrl+Left and Ctrl+Right will pass them by. Using this option overrides the option --wordbounds. This fulfills https://savannah.gnu.org/bugs/?47283.
-
Benno Schulenberg authored
-
- 11 Jul, 2016 2 commits
-
-
Benno Schulenberg authored
To make nano save its modified buffers when it runs out of memory.
-
Benno Schulenberg authored
-
- 04 Jul, 2016 3 commits
-
-
Rishabh Dave authored
It is easy to type beside the comma key and hit instead "m" or ".", so accept also these as a separator between line and column number. And when being generous anyway, also accept space, slash and semicolon. This fulfills https://savannah.gnu.org/bugs/?48305 . Signed-off-by:
Rishabh Dave <rishabhddave@gmail.com>
-
Benno Schulenberg authored
-
Benno Schulenberg authored
When parsing a line and a column number, of course the found values need to be passed back, otherwise it would be pointless to parse them.
-
- 20 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 28 May, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 16 May, 2016 1 commit
-
-
Benno Schulenberg authored
If during startup there are multiple error messages, currently only the last one remains and can be read. To improve on that, introduce a short pause between error messages -- even if it's not enough to read them all, at least the user will be aware that there are multiple ones. This also causes a few error messages to beep that currently don't beep, such as when a file is unwritable.
-
- 12 May, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-