From 5eb5c4d58b0808ab4f6ae8148bba80bbe778aa5e Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Tue, 1 Feb 2022 14:09:27 +0800 Subject: [PATCH] - enhancement: show caret at once, when edition finished --- NEWS.md | 1 + RedPandaIDE/qsynedit/SynEdit.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index 92cb2da2..de985d37 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,7 @@ Red Panda C++ Version 0.14.1 - enhancement: show custom theme folder in options dialog -> enviroment -> folders - enhancement: display localzed icon set name in the option dialog - enhancement: new sky blue icon set, contributed by Alan-CRL + - enhancement: show caret at once, when edition finished Red Panda C++ Version 0.14.0 - enhancement: custom icon set ( in the configuration folder) diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index 60e2c1a1..9174f354 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -5376,9 +5376,12 @@ void SynEdit::onCommandProcessed(SynEditorCommand , QChar , void *) void SynEdit::ExecuteCommand(SynEditorCommand Command, QChar AChar, void *pData) { + hideCaret(); incPaintLock(); + auto action=finally([this] { decPaintLock(); + showCaret(); }); switch(Command) { //horizontal caret movement or selection