diff --git a/NEWS.md b/NEWS.md index f9f5774a..e92ed694 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,9 +1,11 @@ +Version 0.7.0 + - fix: Backspace still works in readonly mode + Version 0.6.8 - enhancement: add link to cppreference in the help menu - fix: add mutex lock to prevent editor crash in rare conditions - fix: In the create project dialog, the browser button doesn't work - enhancement: use QStyle to implement the dark style, and better control of the style's look and feel - - enhancement: add link to C/C++ reference website in the help menu - enhancement: add link to EGE website, if locale is zh_CN Version 0.6.7 diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index 51e19c3a..3deeb68e 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -1522,22 +1522,21 @@ void SynEdit::doToggleComment() void SynEdit::doDeleteLastChar() { - // if not ReadOnly then begin + if (mReadOnly) + return ; doOnPaintTransientEx(SynTransientType::ttBefore, true); auto action = finally([this]{ ensureCursorPosVisible(); doOnPaintTransientEx(SynTransientType::ttAfter, true); }); - // try + if (selAvail()) { setSelectedTextEmpty(); return; } QString Temp = lineText(); - //TabBuffer := Lines.ExpandedStrings[CaretY - 1]; int Len = Temp.length(); BufferCoord Caret = caretXY(); -// int vTabTrim = 0; QString helper = ""; if (mCaretX > Len + 1) { // if (mOptions.setFlag(eoSmartTabDelete)) { diff --git a/RedPandaIDE/systemconsts.h b/RedPandaIDE/systemconsts.h index 8af44fda..b9ffa4bd 100644 --- a/RedPandaIDE/systemconsts.h +++ b/RedPandaIDE/systemconsts.h @@ -3,7 +3,7 @@ #include -#define DEVCPP_VERSION "0.6.8" +#define DEVCPP_VERSION "0.6.9" #ifdef Q_OS_WIN #define APP_SETTSINGS_FILENAME "redpandacpp.ini"