diff options
Diffstat (limited to 'src/gui/widgets/textbox.cpp')
-rw-r--r-- | src/gui/widgets/textbox.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp index 31e000082..5d1696835 100644 --- a/src/gui/widgets/textbox.cpp +++ b/src/gui/widgets/textbox.cpp @@ -529,10 +529,8 @@ void TextBox::setCaretPosition(unsigned int position) mCaretColumn = position; return; // we are done } - else - { - position--; - } + + position--; } // position beyond end of text |