Skip to content

Commit

Permalink
insert matching curly brace
Browse files Browse the repository at this point in the history
* should avoid unwanted empty lines on line break
  • Loading branch information
arBmind committed Dec 29, 2023
1 parent 3899a02 commit 134400b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/qmljseditor/qmljsautocompleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ QString AutoCompleter::insertMatchingBrace(const QTextCursor &cursor,
return QString(QLatin1Char(']'));

case '{':
return QString(); // nothing to do.
return QString(QLatin1Char('}'));

case ')':
case ']':
Expand Down

0 comments on commit 134400b

Please sign in to comment.