Trigger update after copy/move (#1638)

* trigger update after copy/move

* trigger refresh after returnign from shell

* add renew after returning from shell

* move file update
This commit is contained in:
valoq authored and GitHub committed 2024-03-24 20:12:47 +01:00
1 parent 951795c789
commit ddcd308614
2 files changed
+11 -1

No files matched your search

+5
View File
@@ -482,6 +482,10 @@ func (app *app) runCmdSync(cmd *exec.Cmd, pause_after bool) {
}
app.ui.loadFile(app, true)
//mark the current directory as updated for refresh
app.nav.currDir().updated = true
app.nav.renew()
}
@@ -517,6 +521,7 @@ func (app *app) runShell(s string, args []string, prefix string) {
cmd.Stderr = os.Stderr
app.runCmdSync(cmd, prefix == "!")
return
}