diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-05-02 13:02:10 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-05-02 13:02:10 +1000 |
| commit | 2fca4e564304ee69b33711084ceeefae397619cd (patch) | |
| tree | f44597c62ee4d29137b78a24a36650712e89608c /src/highlighters.cc | |
| parent | ccecd5bd8e871b7aa89568609fd4ba7c50fd52ad (diff) | |
Fix traling whitespaces
Diffstat (limited to 'src/highlighters.cc')
| -rw-r--r-- | src/highlighters.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index 298e6b33..ecc84481 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -879,8 +879,8 @@ struct WrapHighlighter : Highlighter auto find_split_pos = [&](SplitPos start_pos, auto is_word) -> Optional<SplitPos> { if (start_pos.byte == 0) return {}; - const char* it = &content[pos.byte]; - // split at current position if is a word boundary + const char* it = &content[pos.byte]; + // split at current position if is a word boundary if (not is_word(utf8::codepoint(it, content.end()), {'_'})) return pos; // split at last word boundary if the word is shorter than our wrapping width |
