Skip to content

Commit

Permalink
Fixes merging error
Browse files Browse the repository at this point in the history
  • Loading branch information
dingfeli committed Sep 25, 2024
1 parent b079720 commit ae140be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void verifyKey(final VerifyEvent event) {
// Here we examine all other relevant keystrokes that may be relevant to the preview's lifetime:
// - CR (new line)
// - BS (backspace)
String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().trim();
String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().getInsertText().trim();
switch (event.keyCode) {
case SWT.CR:
if (lastKeyStrokeType == LastKeyStrokeType.OPEN_CURLY && isAutoClosingEnabled) {
Expand Down Expand Up @@ -190,7 +190,7 @@ public void verifyText(final VerifyEvent event) {
return;
}

String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().trim();
String currentSuggestion = qInvocationSessionInstance.getCurrentSuggestion().getInsertText().trim();
int currentOffset = widget.getCaretOffset();
qInvocationSessionInstance
.setHasBeenTypedahead(currentOffset - qInvocationSessionInstance.getInvocationOffset() > 0);
Expand Down

This file was deleted.

0 comments on commit ae140be

Please sign in to comment.