From 9304b26b8d0ab63c8be1a592628df8f79dff5851 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 ']':