diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index aeb411c7..dcd51a7e 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc @@ -285,6 +285,8 @@ void TextBox::buttonPressEvent(XButtonEvent &event) { } } m_cursor_pos = click_pos - m_start_pos; + m_select_pos = std::string::npos; // clear select + adjustPos(); clear(); } }