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 Feb 10, 2024
1 parent f46867c commit 9304b26
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 9304b26

Please sign in to comment.