tweak selection display

This commit is contained in:
Roy Qu 2024-03-22 22:58:28 +08:00
parent 51a05e1bc6
commit bf9e56367e
2 changed files with 5 additions and 5 deletions

View File

@ -1330,7 +1330,7 @@ void Settings::Editor::doSave()
saveValue("scroll_past_eol", mScrollPastEol);
saveValue("half_page_scroll", mHalfPageScroll);
saveValue("mouse_wheel_scroll_speed", mMouseWheelScrollSpeed);
saveValue("mouse_selection_scroll_speed",mMouseSelectionScrollSpeed);
saveValue("mouse_drag_scroll_speed",mMouseSelectionScrollSpeed);
//right edge
saveValue("show_right_edge_line",mShowRightEdgeLine);
@ -1461,7 +1461,7 @@ void Settings::Editor::doLoad()
mScrollPastEol = boolValue("scroll_past_eol", false);
mHalfPageScroll = boolValue("half_page_scroll",false);
mMouseWheelScrollSpeed = intValue("mouse_wheel_scroll_speed", 3);
mMouseSelectionScrollSpeed = intValue("mouse_selection_scroll_speed",10);
mMouseSelectionScrollSpeed = intValue("mouse_drag_scroll_speed",10);
//right edge

View File

@ -6694,10 +6694,10 @@ void QSynEdit::setBlockEnd(BufferCoord value)
} else {
BufferCoord oldBlockEnd = mBlockEnd;
mBlockEnd = value;
if (mActiveSelectionMode != SelectionMode::Column || oldBlockEnd.line != mBlockEnd.line) {
if (mActiveSelectionMode != SelectionMode::Column || mBlockBegin.ch != mBlockEnd.ch) {
invalidateLines(
std::min(mBlockBegin.line, std::min(mBlockEnd.line, oldBlockEnd.line)),
std::max(mBlockBegin.line, std::max(mBlockEnd.line, oldBlockEnd.line)));
std::min(mBlockEnd.line, oldBlockEnd.line),
std::max(mBlockEnd.line, oldBlockEnd.line));
}
}
setStatusChanged(StatusChange::scSelection);