diff options
| author | Adam Harrison <adamdharrison@gmail.com> | 2022-05-15 14:31:00 -0400 |
|---|---|---|
| committer | jgmdev <jgmdev@gmail.com> | 2022-05-15 15:25:02 -0400 |
| commit | daeb2a8e044aa8e26ad93e1e91e89a373c6508d2 (patch) | |
| tree | 7fdee87643bb39289107cbddd08fba2d31cf20bc /src | |
| parent | 5a0d213f3b420bb4ff6cf46edbd306d437026745 (diff) | |
| download | lite-xl-daeb2a8e044aa8e26ad93e1e91e89a373c6508d2.tar.gz lite-xl-daeb2a8e044aa8e26ad93e1e91e89a373c6508d2.zip | |
Made sure we redrew things, added in a contingency in 'save' for times when we load a non-existent file, and added some checks.
Diffstat (limited to 'src')
| -rw-r--r-- | src/api/dirmonitor/inotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/dirmonitor/inotify.c b/src/api/dirmonitor/inotify.c index cb38c315..63e501a7 100644 --- a/src/api/dirmonitor/inotify.c +++ b/src/api/dirmonitor/inotify.c @@ -47,7 +47,7 @@ int translate_changes_dirmonitor(struct dirmonitor_internal* monitor, char* buff int add_dirmonitor(struct dirmonitor_internal* monitor, const char* path) { - return inotify_add_watch(monitor->fd, path, IN_CREATE | IN_DELETE | IN_MOVED_FROM | IN_MOVED_TO); + return inotify_add_watch(monitor->fd, path, IN_CREATE | IN_DELETE | IN_MOVED_FROM | IN_MODIFY | IN_MOVED_TO); } |
