Set watches on cd instead of select

This commit is contained in:
Joe Lim committed 2024-03-31 22:47:38 +11:00
1 parent 4ec8ba5690
commit e9ff541c77
1 file changed
+1 -1
+1 -1
View File
@@ -562,6 +562,7 @@ func preChdir(app *app) {
func onChdir(app *app) {
app.nav.addJumpList()
app.nav.setWatches()
if cmd, ok := gOpts.cmds["on-cd"]; ok {
cmd.eval(app, nil)
}
@@ -574,7 +575,6 @@ func onRedraw(app *app) {
}
func onSelect(app *app) {
app.nav.setWatches()
if cmd, ok := gOpts.cmds["on-select"]; ok {
cmd.eval(app, nil)
}