summaryrefslogtreecommitdiff
path: root/src/display_buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-07-11 18:17:51 +1000
committerMaxime Coste <mawww@kakoune.org>2022-07-11 18:17:51 +1000
commit50cacc0758ea7e6acd7dcc350f8dbb2e6559a30e (patch)
treeb30d5fbdff8b598cbe38d7719b8f5ad12015a6b6 /src/display_buffer.hh
parentce75867e441a1ebde0e3d9e434672a05b49bd9e3 (diff)
Fix buffer location of column highlighter's past-eol atoms
Using buffer end was confusing Window::display_position that assumes display atom buffer locations are always increasing.
Diffstat (limited to 'src/display_buffer.hh')
-rw-r--r--src/display_buffer.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh
index ec5da89e..6d739095 100644
--- a/src/display_buffer.hh
+++ b/src/display_buffer.hh
@@ -142,7 +142,7 @@ public:
}
iterator erase(iterator beg, iterator end);
- void push_back(DisplayAtom atom);
+ DisplayAtom& push_back(DisplayAtom atom);
// remove first_col from the begining of the line, and make sure
// the line is less that col_count character