From 0f70658d32807e15f6d58c330e933d4dbbc4cad0 Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Wed, 1 Sep 2021 16:22:32 +0800 Subject: [PATCH] work save --- RedPandaIDE/editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 1754fe4e..eac1232d 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -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;