tweak selection display
This commit is contained in:
parent
51a05e1bc6
commit
bf9e56367e
|
@ -1330,7 +1330,7 @@ void Settings::Editor::doSave()
|
||||||
saveValue("scroll_past_eol", mScrollPastEol);
|
saveValue("scroll_past_eol", mScrollPastEol);
|
||||||
saveValue("half_page_scroll", mHalfPageScroll);
|
saveValue("half_page_scroll", mHalfPageScroll);
|
||||||
saveValue("mouse_wheel_scroll_speed", mMouseWheelScrollSpeed);
|
saveValue("mouse_wheel_scroll_speed", mMouseWheelScrollSpeed);
|
||||||
saveValue("mouse_selection_scroll_speed",mMouseSelectionScrollSpeed);
|
saveValue("mouse_drag_scroll_speed",mMouseSelectionScrollSpeed);
|
||||||
|
|
||||||
//right edge
|
//right edge
|
||||||
saveValue("show_right_edge_line",mShowRightEdgeLine);
|
saveValue("show_right_edge_line",mShowRightEdgeLine);
|
||||||
|
@ -1461,7 +1461,7 @@ void Settings::Editor::doLoad()
|
||||||
mScrollPastEol = boolValue("scroll_past_eol", false);
|
mScrollPastEol = boolValue("scroll_past_eol", false);
|
||||||
mHalfPageScroll = boolValue("half_page_scroll",false);
|
mHalfPageScroll = boolValue("half_page_scroll",false);
|
||||||
mMouseWheelScrollSpeed = intValue("mouse_wheel_scroll_speed", 3);
|
mMouseWheelScrollSpeed = intValue("mouse_wheel_scroll_speed", 3);
|
||||||
mMouseSelectionScrollSpeed = intValue("mouse_selection_scroll_speed",10);
|
mMouseSelectionScrollSpeed = intValue("mouse_drag_scroll_speed",10);
|
||||||
|
|
||||||
|
|
||||||
//right edge
|
//right edge
|
||||||
|
|
|
@ -6694,10 +6694,10 @@ void QSynEdit::setBlockEnd(BufferCoord value)
|
||||||
} else {
|
} else {
|
||||||
BufferCoord oldBlockEnd = mBlockEnd;
|
BufferCoord oldBlockEnd = mBlockEnd;
|
||||||
mBlockEnd = value;
|
mBlockEnd = value;
|
||||||
if (mActiveSelectionMode != SelectionMode::Column || oldBlockEnd.line != mBlockEnd.line) {
|
if (mActiveSelectionMode != SelectionMode::Column || mBlockBegin.ch != mBlockEnd.ch) {
|
||||||
invalidateLines(
|
invalidateLines(
|
||||||
std::min(mBlockBegin.line, std::min(mBlockEnd.line, oldBlockEnd.line)),
|
std::min(mBlockEnd.line, oldBlockEnd.line),
|
||||||
std::max(mBlockBegin.line, std::max(mBlockEnd.line, oldBlockEnd.line)));
|
std::max(mBlockEnd.line, oldBlockEnd.line));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setStatusChanged(StatusChange::scSelection);
|
setStatusChanged(StatusChange::scSelection);
|
||||||
|
|
Loading…
Reference in New Issue