Workaround for rendering glitch in case of short-lived input process

: | fzf --preview 'echo foo'
pull/747/head
Junegunn Choi 8 years ago
parent 746961bf43
commit 6f17f412ba
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -130,6 +130,13 @@ func Init(theme *ColorTheme, black bool, mouse bool) {
} else {
_colorFn = attrMono
}
C.nodelay(C.stdscr, true)
ch := C.getch()
if ch != C.ERR {
C.ungetch(ch)
}
C.nodelay(C.stdscr, false)
}
func initPairs(theme *ColorTheme) {

Loading…
Cancel
Save