aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/TextBox.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index aeb411c..dcd51a7 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -285,6 +285,8 @@ void TextBox::buttonPressEvent(XButtonEvent &event) {
285 } 285 }
286 } 286 }
287 m_cursor_pos = click_pos - m_start_pos; 287 m_cursor_pos = click_pos - m_start_pos;
288 m_select_pos = std::string::npos; // clear select
289 adjustPos();
288 clear(); 290 clear();
289 } 291 }
290} 292}