diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-09-01 13:59:40 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-09-01 20:49:47 +0100 |
| commit | e9d7d70e47fd57476797508cc3ee415c54e86646 (patch) | |
| tree | 28fdf57686a1fca4a1436b5e65c96e6dd1b385c0 /src/buffer.hh | |
| parent | ae7dc3c576a0b44ed8eed7ace23b8ebedee3fdf2 (diff) | |
Cache buffer display name
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 9a0525d5..ba5a62df 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -139,7 +139,7 @@ public: ByteCoordAndTarget offset_coord(ByteCoordAndTarget coord, LineCount offset); const String& name() const { return m_name; } - String display_name() const; + const String& display_name() const { return m_display_name; } // returns true if the buffer is in a different state than // the last time it was saved @@ -199,6 +199,7 @@ private: LineList m_lines; String m_name; + String m_display_name; Flags m_flags; using UndoGroup = Vector<Modification, MemoryDomain::BufferMeta>; |
