- 21 Jan, 2017 9 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Just assign the 'CNONE' value upfront, instead of figuring out at the end of the line whether anything has been assigned yet. Also, the old logic would leave unmarked a line that contains a start match without any terminating end match. Not serious, but not right.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Don't use the 'startmatch' variable when the corresponding match is not the start of anything but is the entire match by itself.
-
Benno Schulenberg authored
-
- 20 Jan, 2017 3 commits
-
-
Benno Schulenberg authored
Don't blithely overshoot the end of a line when both start regex and end regex match an empty string. Overshooting would let the matching run on into uncharted country and thus ultimately cause a segfault. This fixes https://savannah.gnu.org/bugs/?50056 . Reported-by:
Elia Geretto <elia.f.geretto@gmail.com>
-
Benno Schulenberg authored
The segmentation fault that this causes when both start and end match are zero-length will be tackled later (https://savannah.gnu.org/bugs/?50056). This fixes https://savannah.gnu.org/bugs/?50078 . Inspired-by:
Elia Geretto <elia.f.geretto@gmail.com>
-
Benno Schulenberg authored
During precalculation and in step_two, we begin looking for an end match only after the full start match, not merely one byte beyond its starting point. So do that too when searching backward for an unpaired start match. Also, index can never be zero here, because if the match was of length zero, this piece of code will have been skipped by the preceding goto. So we can always use REG_NOTBOL here. (That goto is wrong, by the way: https://savannah.gnu.org/bugs/?50078, but that will follow later.)
-
- 19 Jan, 2017 2 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?50028.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?49892.
-
- 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.
-
- 13 Jan, 2017 6 commits
-
-
Benno Schulenberg authored
And return a better value, so that less calculation is needed.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
(Ignore the indentation for the moment.)
-
Benno Schulenberg authored
-
David Lawrence Ramsey authored
If the given line is out of range of editwinrows, we don't display it at all, so we obviously don't display more than one line of it. Thus, the return value in this case should be zero, not one.
-
David Lawrence Ramsey authored
-
- 12 Jan, 2017 6 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
And columns from indexes -- columns are places on the screen, while indexes point to characters in a line in the current buffer.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
(The mistake becomes visible when you go to the end of a very long line of double-width characters: the $ will be shown on the right edge, even though you're already at line's end.) This reverts commit 16a7fd4b from yesterday.
-
- 11 Jan, 2017 3 commits
-
-
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.
-
Benno Schulenberg authored
This addresses part of https://savannah.gnu.org/patch/?9216 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
Benno Schulenberg authored
-
- 10 Jan, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 09 Jan, 2017 8 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
When there is no end match after a start, it is pointless to look for any more starts because also they will not have any end match, so nothing will get painted -- just cut the loop short.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?50009.
-
Benno Schulenberg authored
The tiny version can do regex searches nowadays, so the user might use the \< and \> anchors in their regexes. This fixes https://savannah.gnu.org/bugs/?50008.
-
Benno Schulenberg authored
-