From 134400b50bba2257c7c8a10b9cdf0cf6faf35c1f Mon Sep 17 00:00:00 2001 From: Andreas Reischuck Date: Sun, 10 Sep 2023 15:27:59 +0200 Subject: [PATCH] insert matching curly brace * should avoid unwanted empty lines on line break --- src/plugins/qmljseditor/qmljsautocompleter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmljsautocompleter.cpp b/src/plugins/qmljseditor/qmljsautocompleter.cpp index 51fae0ce5a9..c3aca424933 100644 --- a/src/plugins/qmljseditor/qmljsautocompleter.cpp +++ b/src/plugins/qmljseditor/qmljsautocompleter.cpp @@ -259,7 +259,7 @@ QString AutoCompleter::insertMatchingBrace(const QTextCursor &cursor, return QString(QLatin1Char(']')); case '{': - return QString(); // nothing to do. + return QString(QLatin1Char('}')); case ')': case ']':