summaryrefslogtreecommitdiff
path: root/src/display_buffer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/display_buffer.hh')
-rw-r--r--src/display_buffer.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh
index 045a1cc8..1c8fc53d 100644
--- a/src/display_buffer.hh
+++ b/src/display_buffer.hh
@@ -30,6 +30,9 @@ public:
DisplayAtom(String str, Face face)
: face(face), m_type(Text), m_text(std::move(str)) {}
+ explicit DisplayAtom(String str)
+ : DisplayAtom(std::move(str), Face{}) {}
+
StringView content() const;
ColumnCount length() const;