diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-02-05 09:13:07 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-02-05 09:13:07 +0000 |
| commit | 94cbd5a837edfdcf87b754f3a943c57fbd9c9c32 (patch) | |
| tree | 0b0f51cd571ec2a5ead868013757ddcd15790276 /src/input_handler.cc | |
| parent | ff6eacffa3f5bb10e0bf0d31b3eabc7ac10fcd51 (diff) | |
More string usage cleanup
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 1dbb63bf..f3f6f710 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -420,7 +420,7 @@ public: void insert(Codepoint cp) { - m_line = m_line.substr(0, m_cursor_pos) + codepoint_to_str(cp) + m_line = m_line.substr(0, m_cursor_pos) + String{cp} + m_line.substr(m_cursor_pos); ++m_cursor_pos; } @@ -1187,7 +1187,7 @@ private: void insert(Codepoint key) { - auto str = codepoint_to_str(key); + String str{key}; context().selections().insert(str, InsertMode::InsertCursor); context().hooks().run_hook("InsertChar", str, context()); } |
