Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

: | fzf --preview 'echo foo'

authored by Junegunn Choi · committed by Junegunn Choi · parent 746961b · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:src/tui/ncurses.go+7 added
128 unmodified lines
129 _colorFn = attrColored130 } else {131 _colorFn = attrMono132 }133134 C.nodelay(C.stdscr, true)135 ch := C.getch()136 if ch != C.ERR {137 C.ungetch(ch)138 }139 C.nodelay(C.stdscr, false)140}141142func initPairs(theme *ColorTheme) {143 C.assume_default_colors(C.int(theme.Fg), C.int(theme.Bg))
331 unmodified lines