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:
parent
e82c3410a5
commit
5fe2872904
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user