mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
Workaround for rendering glitch in case of short-lived input process
: | fzf --preview 'echo foo'
This commit is contained in:
parent
746961bf43
commit
6f17f412ba
@ -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…
Reference in New Issue
Block a user