diff options
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index c164cb08..c81fc2f6 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -38,6 +38,7 @@ public: StringView content() const; ColumnCount length() const; + bool empty() const; const BufferCoord& begin() const { @@ -74,8 +75,8 @@ public: Type type() const { return m_type; } - void trim_begin(ColumnCount count); - void trim_end(ColumnCount count); + ColumnCount trim_begin(ColumnCount count); + ColumnCount trim_end_to_length(ColumnCount count); bool operator==(const DisplayAtom& other) const { |
