From 4329508963b4814e454999f3568e3fb0c3118523 Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Sun, 12 Nov 2023 16:19:46 +0100 Subject: [PATCH] fix #3362 --- src/latexcompleter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/latexcompleter.cpp b/src/latexcompleter.cpp index 296ee746b9..7ea8791c22 100644 --- a/src/latexcompleter.cpp +++ b/src/latexcompleter.cpp @@ -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; }