diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-11-27 18:13:29 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-11-27 18:16:21 +1100 |
| commit | 1553d91d278ff943c3545e3cb0728acbf4cf433d (patch) | |
| tree | 9d795b13e34e98199c005ba06bf6ffba8fec386a /src/string_utils.cc | |
| parent | 6c54c4740d2144e897cad5b033ab160b3ab2ddff (diff) | |
Make '_' the default extra_word_chars, and remove built-in support
Fixes #2599
Diffstat (limited to 'src/string_utils.cc')
| -rw-r--r-- | src/string_utils.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_utils.cc b/src/string_utils.cc index 0a420fec..e478fd96 100644 --- a/src/string_utils.cc +++ b/src/string_utils.cc @@ -233,7 +233,7 @@ Vector<StringView> wrap_lines(StringView text, ColumnCount max_width) Vector<StringView> lines; while (it != end) { - const CharCategories cat = categorize(*it, {}); + const CharCategories cat = categorize(*it, {'_'}); if (cat == CharCategories::EndOfLine) { lines.emplace_back(line_begin.base(), it.base()); @@ -242,7 +242,7 @@ Vector<StringView> wrap_lines(StringView text, ColumnCount max_width) } Utf8It word_end = it+1; - while (word_end != end and categorize(*word_end, {}) == cat) + while (word_end != end and categorize(*word_end, {'_'}) == cat) ++word_end; while (word_end > line_begin and |
