m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Restore mouse drag mode (#3096)

This commit is contained in:
Junegunn Choi
2023-01-01 21:04:40 +09:00
parent 7c660aa86e
commit 088293f5e7

View File

@@ -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()