diff options
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc index c4e2d366..4b025fc9 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -168,16 +168,10 @@ ColumnCount DisplayLine::length() const return len; } -void DisplayLine::trim(ColumnCount first_col, ColumnCount col_count, bool only_buffer) +void DisplayLine::trim(ColumnCount first_col, ColumnCount col_count) { for (auto it = begin(); first_col > 0 and it != end(); ) { - if (only_buffer and not it->has_buffer_range()) - { - ++it; - continue; - } - auto len = it->length(); if (len <= first_col) { |
