mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-06 07:02:09 -07:00
Properly clear list when --header-lines not filled on reload
This commit is contained in:
@@ -295,7 +295,9 @@ func Run(opts *Options, revision string) {
|
||||
}
|
||||
|
||||
case EvtHeader:
|
||||
terminal.UpdateHeader(value.([]string))
|
||||
header := value.([]string)
|
||||
header = append(header, make([]string, opts.HeaderLines-len(header))...)
|
||||
terminal.UpdateHeader(header)
|
||||
|
||||
case EvtSearchFin:
|
||||
switch val := value.(type) {
|
||||
|
Reference in New Issue
Block a user