- enhancement: press tab in column mode won't exit column mode

This commit is contained in:
Roy Qu 2022-03-26 09:54:06 +08:00
parent 0fc995e56a
commit 225eb1961a
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,6 @@
Red Panda C++ Version 1.0.2
- enhancement: press tab in column mode won't exit column mode
Red Panda C++ Version 1.0.1 Red Panda C++ Version 1.0.1
- fix: only convert project icon file when it's filename doesn't end with ".ico" - fix: only convert project icon file when it's filename doesn't end with ".ico"
- fix: hide function tip when scroll - fix: hide function tip when scroll

View File

@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
} }
isEmpty(APP_VERSION) { isEmpty(APP_VERSION) {
APP_VERSION=1.0.1 APP_VERSION=1.0.2
} }
win32: VERSION = $${APP_VERSION}.0 win32: VERSION = $${APP_VERSION}.0

View File

@ -2372,6 +2372,10 @@ void SynEdit::insertLine(bool moveCaret)
void SynEdit::doTabKey() void SynEdit::doTabKey()
{ {
if (mActiveSelectionMode == SynSelectionMode::smColumn) {
doAddChar('\t');
return;
}
// Provide Visual Studio like block indenting // Provide Visual Studio like block indenting
if (mOptions.testFlag(eoTabIndent) && canDoBlockIndent()) { if (mOptions.testFlag(eoTabIndent) && canDoBlockIndent()) {
doBlockIndent(); doBlockIndent();
@ -2767,7 +2771,7 @@ void SynEdit::doAddChar(QChar AChar)
{ {
if (mReadOnly) if (mReadOnly)
return; return;
if (!AChar.isPrint()) if (!AChar.isPrint() && AChar!='\t')
return; return;
//DoOnPaintTransient(ttBefore); //DoOnPaintTransient(ttBefore);
//mCaretX will change after setSelLength; //mCaretX will change after setSelLength;

View File

@ -17,7 +17,7 @@ SUBDIRS += \
APP_NAME = RedPandaCPP APP_NAME = RedPandaCPP
APP_VERSION = 1.0.1 APP_VERSION = 1.0.2
linux: { linux: {