1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00

selection: reduce gap used for scrolling viewport

This doesn't fix https://github.com/wez/wezterm/issues/354
but perhaps makes it a bit less annoying.
This commit is contained in:
Wez Furlong 2021-02-27 18:58:28 -08:00
parent 6b0fef18f0
commit d837dc45a1

View File

@ -99,8 +99,8 @@ impl super::TermWindow {
// This is similar to the logic in the copy mode overlay, but the gap
// is smaller because it feels more natural for mouse selection to have
// a smaller gpa.
const VERTICAL_GAP: isize = 2;
// a smaller gap.
const VERTICAL_GAP: isize = 1;
let dims = pane.get_dimensions();
let top = self
.get_viewport(pane.pane_id())