diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-16 20:14:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-16 20:14:29 -0700 |
commit | 1cae1fb7f1b1c2882fedfcbfb0d97015c8726cc8 (patch) | |
tree | b93343892e949822d54f609ce7b9f6ff35c23d30 /linenoise/linenoise.c | |
parent | 6b40915a50db3159394221a7b6b46cbb74dae606 (diff) | |
download | txr-1cae1fb7f1b1c2882fedfcbfb0d97015c8726cc8.tar.gz txr-1cae1fb7f1b1c2882fedfcbfb0d97015c8726cc8.tar.bz2 txr-1cae1fb7f1b1c2882fedfcbfb0d97015c8726cc8.zip |
Bugfix in split-str: empty-match regexes.
* lib.c (split_str_keep): In the regex case, changing
to an infinite loop. The do/while is no longer needed because
the if statement includes a test of the position having
reached the end of the string. This is done before it is
incremented by len, so we avoid wrongly keeping a separator.
* txr.1: Clarified that an empty regex match
behaves like an sep which is an empty string,
Diffstat (limited to 'linenoise/linenoise.c')
0 files changed, 0 insertions, 0 deletions