work save

This commit is contained in:
royqh1979@gmail.com 2021-09-01 16:22:32 +08:00
parent fe4c6f0659
commit 0f70658d32
1 changed files with 4 additions and 1 deletions

View File

@ -1361,7 +1361,10 @@ bool Editor::handleBraceSkip()
return false;
BufferCoord pos = getMatchingBracket();
if (pos.Line != 0) {
setCaretXY( BufferCoord{caretX() + 1, caretY()}); // skip over
setBlockBegin(caretXY());
setBlockEnd(BufferCoord{caretX() + 1, caretY()});
CommandProcessor(SynEditorCommand::ecChar,'}');
// setCaretXY( BufferCoord{caretX() + 1, caretY()}); // skip over
return true;
}
return false;