mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-16 02:51:37 +08:00
Properly clear list when --header-lines not filled on reload
This commit is contained in:
1 parent
1e6ac5590e
commit
86e3994e87
3 files changed
+14
-1
No files matched your search
+3
-1
@@ -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