From 50cacc0758ea7e6acd7dcc350f8dbb2e6559a30e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 11 Jul 2022 18:17:51 +1000 Subject: 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. --- src/display_buffer.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/display_buffer.hh') 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 -- cgit v1.2.3