mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 15:18:29 +00:00
Temporarily disable mouse mode when switching to an external command
This commit is contained in:
parent
91b9591b10
commit
d0a0f3c052
@ -605,6 +605,7 @@ func (r *LightRenderer) rmcup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *LightRenderer) Pause(clear bool) {
|
func (r *LightRenderer) Pause(clear bool) {
|
||||||
|
r.disableMouse()
|
||||||
r.restoreTerminal()
|
r.restoreTerminal()
|
||||||
if clear {
|
if clear {
|
||||||
if r.fullscreen {
|
if r.fullscreen {
|
||||||
@ -630,7 +631,6 @@ func (r *LightRenderer) disableMouse() {
|
|||||||
r.csi("?1000l")
|
r.csi("?1000l")
|
||||||
r.csi("?1002l")
|
r.csi("?1002l")
|
||||||
r.csi("?1006l")
|
r.csi("?1006l")
|
||||||
r.mouse = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -649,6 +649,7 @@ func (r *LightRenderer) Resume(clear bool, sigcont bool) {
|
|||||||
// It's highly likely that the offset we obtained at the beginning is
|
// It's highly likely that the offset we obtained at the beginning is
|
||||||
// no longer correct, so we simply disable mouse input.
|
// no longer correct, so we simply disable mouse input.
|
||||||
r.disableMouse()
|
r.disableMouse()
|
||||||
|
r.mouse = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user