summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-11-02 01:27:04 +0800
committerMaxime Coste <mawww@kakoune.org>2017-11-02 01:28:28 +0800
commit329f5fca0e40b781ae01517d85810f4860e2bbe6 (patch)
treecd25da5f78fb56ad70328a8fa6e22895e935b089 /src
parent6f2088cbc41cbdd3e3a1412fc8ed4a4c6ab6bd3f (diff)
Fix trailing spaces in highlighters.cc
Diffstat (limited to 'src')
-rw-r--r--src/highlighters.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc
index 6f75e3b2..fb8a45c8 100644
--- a/src/highlighters.cc
+++ b/src/highlighters.cc
@@ -619,7 +619,7 @@ HighlighterAndId create_column_highlighter(HighlighterParameters params)
auto win_column = context.window().position().column;
for (auto& line : display_buffer.lines())
{
- auto target_col = column - win_column;
+ auto target_col = column - win_column;
if (target_col < 0)
return;
@@ -674,7 +674,7 @@ struct WrapHighlighter : Highlighter
{
const LineCount buf_line = it->range().begin.line;
const ByteCount line_length = buffer[buf_line].length();
- ColumnCount indent = m_preserve_indent ? line_indent(buffer, tabstop, buf_line) : 0_col;
+ ColumnCount indent = m_preserve_indent ? line_indent(buffer, tabstop, buf_line) : 0_col;
if (indent >= wrap_column) // do not preserve indent when its bigger than wrap column
indent = 0;
@@ -764,7 +764,7 @@ struct WrapHighlighter : Highlighter
if (buf_line >= buffer.line_count())
break;
- ColumnCount indent = m_preserve_indent ? line_indent(buffer, tabstop, buf_line) : 0_col;
+ ColumnCount indent = m_preserve_indent ? line_indent(buffer, tabstop, buf_line) : 0_col;
if (indent >= wrap_column) // do not preserve indent when its bigger than wrap column
indent = 0;
@@ -1327,7 +1327,7 @@ private:
update_line_specs_ifn(buffer, line_flags);
ColumnCount width = 0;
- try
+ try
{
for (auto& line : line_flags.list)
width = std::max(parse_display_line(std::get<1>(line)).length(), width);