summaryrefslogtreecommitdiff
path: root/src/string.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-06-26 15:28:41 +0100
committerMaxime Coste <mawww@kakoune.org>2017-06-26 15:28:41 +0100
commitf41d78083aa8d3883bcd4ed819e6784e09e69dba (patch)
treea67d2432ecf7f2ed499760eb245120dcae0221f5 /src/string.cc
parentdc378aed7290eb9fd90b752a2841fa2457bb91d0 (diff)
Use the extra_word_chars option in word based normal commands
the completion_extra_word_chars is now gone, superseeded by extra_word_chars that gets used both for completion and for normal mode. Fixes #1304
Diffstat (limited to 'src/string.cc')
-rw-r--r--src/string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cc b/src/string.cc
index 89b7c3fe..1ab56481 100644
--- a/src/string.cc
+++ b/src/string.cc
@@ -429,7 +429,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());
@@ -438,7 +438,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