Skip to content

Commit

Permalink
fix #3362
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Nov 12, 2023
1 parent f0a3a89 commit 4329508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/latexcompleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ class CompleterInputBinding: public QEditorInputBinding
insertCompletedWord();
resetBinding();
return true;
} else {
if (event->text().length() != 1 || event->text() == " ") {
} else {
if (event->text().length() != 1 || (event->text() == " " && !completer->listModel->isNextCharPossible(' ') ) ) {
resetBinding();
return false;
}
Expand Down

0 comments on commit 4329508

Please sign in to comment.