mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-18 02:55:11 +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 {
|
} else {
|
||||||
_colorFn = attrMono
|
_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) {
|
func initPairs(theme *ColorTheme) {
|
||||||
|
Loading…
Reference in New Issue
Block a user