Skip to content

Commit f867f80

Browse files
authored
fix del closing brace (texstudio-org#3536)
1 parent 502bda2 commit f867f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/texstudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4014,10 +4014,10 @@ void Texstudio::editEraseWordCmdEnv()
40144014
if (cursor.nextChar() == QChar('{')) {
40154015
QDocumentCursor orig, to;
40164016
cursor.getMatchingPair(orig, to, false);
4017-
cursor.deleteChar();
40184017
if (orig.isValid() && to.isValid()){
40194018
to.removeSelectedText();
40204019
}
4020+
cursor.deleteChar();
40214021
}
40224022
currentEditorView()->editor->document()->endMacro();
40234023
}

0 commit comments

Comments
 (0)