From 088293f5e7344122728b305595b1e3e8e4d5a5ca Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 1 Jan 2023 21:04:40 +0900 Subject: [PATCH] Restore mouse drag mode (#3096) --- src/tui/light.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tui/light.go b/src/tui/light.go index 83020a71..7745efd9 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -631,6 +631,7 @@ func (r *LightRenderer) Resume(clear bool, sigcont bool) { // It's highly likely that the offset we obtained at the beginning is // no longer correct, so we simply disable mouse input. r.csi("?1000l") + r.csi("?1002l") r.csi("?1006l") r.mouse = false } @@ -671,6 +672,7 @@ func (r *LightRenderer) Close() { } if r.mouse { r.csi("?1000l") + r.csi("?1002l") r.csi("?1006l") } r.flush()