# HG changeset patch # User Teemu Piippo # Date 1611766514 -7200 # Node ID 53f9c7b2c0681f583db9371ae11f47b290b69cd4 # Parent 9330b93d99460be776efed6dd57dad9b99a94f6d fixed an off-by-one error diff -r 9330b93d9946 -r 53f9c7b2c068 sources/interface.cpp --- a/sources/interface.cpp Wed Jan 27 18:55:03 2021 +0200 +++ b/sources/interface.cpp Wed Jan 27 18:55:14 2021 +0200 @@ -740,7 +740,7 @@ if (m_cursorPosition > 0) { std::string& input = getEditableInput(); - input.erase(input.begin() + m_cursorPosition); + input.erase(input.begin() + m_cursorPosition - 1); m_cursorPosition -= 1; m_needInputRender = true; }