minor fix

This commit is contained in:
Roy Qu 2022-10-19 10:37:30 +08:00
parent 17bcac80fd
commit ab6feb1758
3 changed files with 3 additions and 3 deletions

View File

@ -50,6 +50,7 @@ Project::Project(const QString &filename, const QString &name,
QObject *parent) :
QObject(parent),
mName(name),
mModified(false),
mModel(this),
mEditorList(editorList),
mFileSystemWatcher(fileSystemWatcher)

View File

@ -680,7 +680,6 @@ private:
PUndoList mUndoList;
PRedoList mRedoList;
QPoint mMouseDownPos;
bool mHideSelection;
int mMouseWheelAccumulator;
EditCaretType mOverwriteCaret;
EditCaretType mInsertCaret;

View File

@ -252,7 +252,7 @@ void SynEditTextPainter::computeSelectionInfo()
BufferCoord vEnd;
bAnySelection = false;
// Only if selection is visible anyway.
if (!edit->mHideSelection || edit->hasFocus()) {
if (edit->hasFocus()) {
bAnySelection = true;
// Get the *real* start of the selected area.
if (edit->mBlockBegin.line < edit->mBlockEnd.line) {