diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2019-12-06 22:34:45 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-12-06 22:34:45 +0900 |
commit | 86e3994e87b264f874ea1620fc31f42e3744aad0 (patch) | |
tree | f57f8924b68b76b9694fca0af6f2b2c7bd21efa0 /src/core.go | |
parent | 1e6ac5590ec3c928b4d065a42eb45bac87752bbc (diff) |
Properly clear list when --header-lines not filled on reload
Diffstat (limited to 'src/core.go')
-rw-r--r-- | src/core.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go index 37513f5c..985c177f 100644 --- a/src/core.go +++ b/src/core.go @@ -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) { |