mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Fix index out of range on backspace in completer
This commit is contained in:
parent
8922a47776
commit
90ce4f23ab
1 changed files with 3 additions and 3 deletions
|
@ -81,6 +81,9 @@ Rectangle {
|
||||||
completerTriggeredAt = -1;
|
completerTriggeredAt = -1;
|
||||||
popup.close();
|
popup.close();
|
||||||
}
|
}
|
||||||
|
if (popup.opened)
|
||||||
|
popup.completer.setSearchString(textArea.getText(completerTriggeredAt, cursorPosition));
|
||||||
|
|
||||||
}
|
}
|
||||||
onSelectionStartChanged: TimelineManager.timeline.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
|
onSelectionStartChanged: TimelineManager.timeline.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
|
||||||
onSelectionEndChanged: TimelineManager.timeline.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
|
onSelectionEndChanged: TimelineManager.timeline.input.updateState(selectionStart, selectionEnd, cursorPosition, text)
|
||||||
|
@ -132,9 +135,6 @@ Rectangle {
|
||||||
textArea.clear();
|
textArea.clear();
|
||||||
event.accepted = true;
|
event.accepted = true;
|
||||||
}
|
}
|
||||||
if (popup.opened)
|
|
||||||
popup.completer.setSearchString(textArea.getText(completerTriggeredAt, cursorPosition) + event.text);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
|
Loading…
Reference in a new issue