diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-04-23 21:11:50 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-04-23 21:11:50 +0100 |
| commit | 840e58e0b1d3ca977a411b3d048009eff5f4bdd5 (patch) | |
| tree | 620363c77fbea93db364df3ee5ed27a8a0728344 /src/display_buffer.cc | |
| parent | e0f7a6f0bebe30bf57592b3fc4f9970673fd38a3 (diff) | |
NCurses: When mode line is too long, trim it rather hiding it
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 4 |
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; |
