summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/display_buffer.cc')
-rw-r--r--src/display_buffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc
index 3bcf37b2..bfd2c780 100644
--- a/src/display_buffer.cc
+++ b/src/display_buffer.cc
@@ -169,11 +169,11 @@ CharCount DisplayLine::length() const
return len;
}
-void DisplayLine::trim(CharCount first_char, CharCount char_count)
+void DisplayLine::trim(CharCount first_char, CharCount char_count, bool only_buffer)
{
for (auto it = begin(); first_char > 0 and it != end(); )
{
- if (not it->has_buffer_range())
+ if (only_buffer and not it->has_buffer_range())
{
++it;
continue;