- 21 Dec, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 20 Dec, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 19 Dec, 2016 5 commits
-
-
Benno Schulenberg authored
A third method does not exist.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
There is no need for a counter, nor an old counter to compare it with.
-
Benno Schulenberg authored
Taking the terminating newline into account, and that there is at least one digit per number.
-
Benno Schulenberg authored
For clarity and a tiny bit more speed. Also rename some variables.
-
- 18 Dec, 2016 14 commits
-
-
Benno Schulenberg authored
A filename might contain spaces, so we can't look for the numbers (the second and third elements) starting from the head of the line -- we have to start at the tail and work backward. This fixes https://savannah.gnu.org/bugs/?49879.
-
Benno Schulenberg authored
(I don't /see/ single-letter variables -- they are too small.)
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
It is irrelevant -- the line is discarded as soon as the data has been extracted.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
So they will not break a line in the positionlog file in two. (Strangely, the reading in of such a log file already decodes nulls back into newlines.) This fixes https://savannah.gnu.org/bugs/?49877.
-
Benno Schulenberg authored
Because changing anything to a null effectively means to truncate the name. This fixes https://savannah.gnu.org/bugs/?49868 and fixes https://savannah.gnu.org/bugs/?49874.
-
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
So that embedded control characters will be represented instead of acted upon. This fixes the first part of https://savannah.gnu.org/bugs/?49867.
-
Benno Schulenberg authored
-
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.
-
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>
-