Export count as a variable when running commands (#1187)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-04-01 19:40:28 +03:00
1 parent f563263add
commit 3ae67fc361
4 files changed
+19

No files matched your search

+2
View File
@@ -1263,6 +1263,8 @@ func insert(app *app, arg string) {
}
func (e *callExpr) eval(app *app, args []string) {
os.Setenv("lf_count", strconv.Itoa(e.count))
switch e.name {
case "up":
if !app.nav.init {