summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-10 19:33:46 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-10 19:50:22 +0000
commit3c1a325b6f7c67c530d99aaaedf5f8c96f2b2de6 (patch)
treef6cdaf2eec33dee178e3c888f5120ea43479b157 /src/display_buffer.cc
parenta0cf75ec39c679776b28b178a4299cf0ad204a1c (diff)
Refactor String, use a common StringOps interface, hide std::string
Diffstat (limited to 'src/display_buffer.cc')
-rw-r--r--src/display_buffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc
index a56fe612..3bcf37b2 100644
--- a/src/display_buffer.cc
+++ b/src/display_buffer.cc
@@ -49,7 +49,7 @@ void DisplayAtom::trim_begin(CharCount count)
m_begin = utf8::advance(m_buffer->iterator_at(m_begin),
m_buffer->iterator_at(m_end), count).coord();
else
- m_text = m_text.substr(count);
+ m_text = m_text.substr(count).str();
check_invariant();
}
@@ -59,7 +59,7 @@ void DisplayAtom::trim_end(CharCount count)
m_end = utf8::advance(m_buffer->iterator_at(m_end),
m_buffer->iterator_at(m_begin), -count).coord();
else
- m_text = m_text.substr(0, m_text.char_length() - count);
+ m_text = m_text.substr(0, m_text.char_length() - count).str();
check_invariant();
}