Skip to content

Commit

Permalink
Merge branch 'master' of github.com:texstudio-org/texstudio
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Feb 25, 2024
2 parents 38833fc + f867f80 commit 9aa0a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/texstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4014,10 +4014,10 @@ void Texstudio::editEraseWordCmdEnv()
if (cursor.nextChar() == QChar('{')) {
QDocumentCursor orig, to;
cursor.getMatchingPair(orig, to, false);
cursor.deleteChar();
if (orig.isValid() && to.isValid()){
to.removeSelectedText();
}
cursor.deleteChar();
}
currentEditorView()->editor->document()->endMacro();
}
Expand Down

0 comments on commit 9aa0a5b

Please sign in to comment.