Skip to content
Myr

Minor refactoring

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 587df59 · Browse files · 1 file+7 added−5 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−5 removed

  • other:+7 added−5 removed

1 file+7 added−5 removed

modified:src/core.go+7 added-5 removed
146 unmodified lines
147 executor := util.NewExecutor(opts.WithShell)148149 // Terminal I/O150 var terminal *Terminal151 var err error151 var initialEnv []string152 initialReload := opts.extractReloadOnStart()153 if opts.Filter == nil {154 var err error155 terminal, err = NewTerminal(opts, eventBox, executor)156 if err != nil {157 return ExitError, err158 }159 initialEnv = terminal.environ()160 var temps []string161 initialReload, temps = terminal.replacePlaceholderInInitialCommand(initialReload)162 defer removeFiles(temps)159 if len(initialReload) > 0 {160 var temps []string161 initialReload, temps = terminal.replacePlaceholderInInitialCommand(initialReload)162 initialEnv = terminal.environ()163 defer removeFiles(temps)164 }165 }166167 // Reader168 streamingFilter := opts.Filter != nil && !sort && !opts.Tac && !opts.Sync
293 unmodified lines