diff --git a/nav.go b/nav.go index f369877..173402b 100644 --- a/nav.go +++ b/nav.go @@ -696,10 +696,7 @@ loop: } if errCount == 0 { - echosuccess := &callExpr{"echo", []string{""}, 1} - echosuccess.args[0] = "\033[0;32mCopied successfully\033[0m" - - ui.exprChan <- echosuccess + ui.exprChan <- &callExpr{"echo", []string{"\033[0;32mCopied successfully\033[0m"}, 1} } } @@ -799,10 +796,7 @@ func (nav *nav) moveAsync(ui *ui, srcs []string, dstDir string) { } if errCount == 0 { - echosuccess := &callExpr{"echo", []string{""}, 1} - echosuccess.args[0] = "\033[0;32mMoved successfully\033[0m" - - ui.exprChan <- echosuccess + ui.exprChan <- &callExpr{"echo", []string{"\033[0;32mMoved successfully\033[0m"}, 1} } }