1
0
Fork 0

SymbolView : Minor fix to properly remove character at virtualCursorPosition-1

This commit is contained in:
Herzeh 2015-12-12 00:59:06 +01:00
parent 2e390f7329
commit fd71ff6689
1 changed files with 2 additions and 2 deletions

View File

@ -223,8 +223,8 @@ bool SearchListView::eventFilter(QObject *obj, QEvent *event)
{
newText = mSearchBox->text();
if(mCursorPosition != 0)
newText.remove(mCursorPosition, 1);
if(mCursorPosition > 0)
newText.remove(mCursorPosition-1, 1);
((mCursorPosition - 1) < 0) ? mCursorPosition = 0 : mCursorPosition--;
}