From 94cbd5a837edfdcf87b754f3a943c57fbd9c9c32 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 5 Feb 2016 09:13:07 +0000 Subject: More string usage cleanup --- src/input_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input_handler.cc') 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()); } -- cgit v1.2.3