mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-11 13:56:33 -06:00
Prevent cursor repositioning during mouse selection (#19182)
- Modify the cursor repositioning logic to check if a selection is in progress - Only reposition the cursor when the mouse is used for positioning, not during selection operations Closes #19181
This commit is contained in:
parent
dbf740cf2c
commit
88ab154f22
@ -2080,7 +2080,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
|
|||||||
_terminal->MultiClickSelection(terminalPosition, mode);
|
_terminal->MultiClickSelection(terminalPosition, mode);
|
||||||
selectionNeedsToBeCopied = true;
|
selectionNeedsToBeCopied = true;
|
||||||
}
|
}
|
||||||
else if (_settings->RepositionCursorWithMouse()) // This is also mode==Char && !shiftEnabled
|
else if (_settings->RepositionCursorWithMouse() && !selectionNeedsToBeCopied) // Don't reposition cursor if this is part of a selection operation
|
||||||
{
|
{
|
||||||
_repositionCursorWithMouse(terminalPosition);
|
_repositionCursorWithMouse(terminalPosition);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user