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_cursor_pos = m_line.char_length();
|
||||
m_display_pos = 0;
|
||||
}
|
||||
|
||||
const String& line() const { return m_line; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user