Fix change notifications

Another embarrassing 71fbaca regression.
This commit is contained in:
Přemysl Eric Janouch 2019-09-27 23:06:12 +02:00
parent bf38e4e9ea
commit 7cce0cc2fd
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 2 deletions

View File

@ -806,8 +806,7 @@ fun reload (const string &old_cwd) {
inotify_rm_watch (g.inotify_fd, g.inotify_wd);
// We don't show atime, so access and open are merely spam
char buf[PATH_MAX];
g.inotify_wd = inotify_add_watch (g.inotify_fd, buf,
g.inotify_wd = inotify_add_watch (g.inotify_fd, ".",
(IN_ALL_EVENTS | IN_ONLYDIR | IN_EXCL_UNLINK) & ~(IN_ACCESS | IN_OPEN));
}