summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh3
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>;