diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-09-04 13:47:16 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-09-04 13:47:16 +0100 |
| commit | ae720b90b1d9047a9d6f3160f0d6eab84ffc2b5a (patch) | |
| tree | 3f2cd8bdf78648d70de022ebe14f953cb240cc73 /src | |
| parent | ededc84c8c7a42e7b871153dbbf9932db84f1c02 (diff) | |
Small code tweak in show_whitespaces highlighter
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index 5b0068c0..e76fb386 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -689,10 +689,7 @@ void show_whitespaces(const Context& context, HighlightFlags flags, DisplayBuffe { int column = (int)get_column(buffer, tabstop, it.coord()); int count = tabstop - (column % tabstop); - String padding = "→"; - for (int i = 0; i < count-1; ++i) - padding += ' '; - atom_it->replace(padding); + atom_it->replace("→" + String(' ', count-1)); } else if (c == ' ') atom_it->replace("·"); |
