From ae720b90b1d9047a9d6f3160f0d6eab84ffc2b5a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 4 Sep 2015 13:47:16 +0100 Subject: [PATCH] Small code tweak in show_whitespaces highlighter --- src/highlighters.cc | 5 +---- 1 file changed, 1 insertion(+), 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("·");