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 3, 2023
1 parent f41ad1e commit 7a11bfe
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 7a11bfe

Please sign in to comment.