mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Linux file watcher: reset manual watch list on emptying roots
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -250,6 +250,7 @@ static bool update_roots(array* new_roots) {
|
||||
|
||||
unregister_roots();
|
||||
if (array_size(new_roots) == 0) {
|
||||
output("UNWATCHEABLE\n/\n#\n");
|
||||
return true;
|
||||
}
|
||||
else if (array_size(new_roots) == 1 && strcmp(array_get(new_roots, 0), "/") == 0) { // refuse to watch entire tree
|
||||
|
||||
Reference in New Issue
Block a user