diff options
author | Joe Wilm <joe@jwilm.com> | 2017-09-05 09:01:07 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-09-05 09:07:00 -0700 |
commit | 2f095d40963e1d2c2608272bf76f71381ef8c471 (patch) | |
tree | 2f57b6a8d01184ae10147ef3494f60092c7a6912 /src/config.rs | |
parent | a7b50e0eb8b0888baee71e329117d38f10878b01 (diff) | |
download | alacritty-2f095d40963e1d2c2608272bf76f71381ef8c471.tar.gz alacritty-2f095d40963e1d2c2608272bf76f71381ef8c471.zip |
Reduce file watcher debounce period
500ms introduced a visual lag between file save and display update.
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 260c1a70..3c57560c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1474,7 +1474,7 @@ impl Monitor { Monitor { _thread: ::util::thread::spawn_named("config watcher", move || { let (tx, rx) = mpsc::channel(); - let mut watcher = watcher(tx, Duration::from_millis(500)).unwrap(); + let mut watcher = watcher(tx, Duration::from_millis(10)).unwrap(); let config_path = ::std::fs::canonicalize(path) .expect("canonicalize config path"); |