1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 17:02:06 +03:00

Reset line editor display pos when the text is reset

This commit is contained in:
Maxime Coste 2016-03-15 13:55:01 +00:00
parent e82c3410a5
commit 5fe2872904

View File

@ -441,6 +441,7 @@ public:
{ {
m_line = std::move(line); m_line = std::move(line);
m_cursor_pos = m_line.char_length(); m_cursor_pos = m_line.char_length();
m_display_pos = 0;
} }
const String& line() const { return m_line; } const String& line() const { return m_line; }