Various fixes for updating dircounts with watch enabled (#1881)

* Fix file size bug when copying files

* Don't remove existing watches

* Bump fsnotify

* Ignore watching `/dev`
This commit is contained in:
Joe Lim authored and GitHub committed 2025-01-15 13:06:00 +11:00
1 parent 8bfa3a6d34
commit 2095efa661
5 files changed
+20 -22

No files matched your search

+2 -2
View File
@@ -195,7 +195,7 @@ func (e *setExpr) eval(app *app, args []string) {
if err == nil {
if gOpts.watch {
app.watch.start()
app.setWatchPaths()
app.addWatchPaths()
} else {
app.watch.stop()
}
@@ -582,7 +582,7 @@ func preChdir(app *app) {
func onChdir(app *app) {
app.nav.addJumpList()
app.setWatchPaths()
app.addWatchPaths()
if cmd, ok := gOpts.cmds["on-cd"]; ok {
cmd.eval(app, nil)
}