Disable mouse if failed to query cursor position

pull/828/head
Junegunn Choi 8 years ago
parent e1291aa6d2
commit 12a43b5e62
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -191,7 +191,8 @@ func (r *LightRenderer) Init() {
if r.fullscreen { if r.fullscreen {
r.smcup() r.smcup()
} else { } else {
_, x := r.findOffset() y, x := r.findOffset()
r.mouse = r.mouse && y >= 0
if x > 0 { if x > 0 {
r.upOneLine = true r.upOneLine = true
r.makeSpace() r.makeSpace()

Loading…
Cancel
Save