Skip to content
Myr

Fix incorrect header array mutation

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 5da8bbf · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:src/core.go+3 added-3 removed
294 unmodified lines
295 terminal.UpdateProgress(val)296 }297298 case EvtHeader:299 header := value.([]string)300 header = append(header, make([]string, opts.HeaderLines-len(header))...)301 terminal.UpdateHeader(header)299 headerPadded := make([]string, opts.HeaderLines)300 copy(headerPadded, value.([]string))301 terminal.UpdateHeader(headerPadded)302303 case EvtSearchFin:304 switch val := value.(type) {305 case *Merger:
39 unmodified lines