diff options
author | Joe Wilm <joe@jwilm.com> | 2016-12-27 22:46:57 -0500 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-27 22:46:57 -0500 |
commit | 8af19c3f0cf0950f8a9bcc664448817e443d07ad (patch) | |
tree | 0b1d1a641de5aa30f7c738c53dff4fee0fcbcf35 | |
parent | ae470bf68bf27921109890da3d90a5b61fa6a7aa (diff) | |
download | alacritty-8af19c3f0cf0950f8a9bcc664448817e443d07ad.tar.gz alacritty-8af19c3f0cf0950f8a9bcc664448817e443d07ad.zip |
Fix bug with config reloading
The reloaded config was not used immediately.
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 64fa5991..aceb9659 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,9 +133,9 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> { let config_updated = config_monitor.as_ref() .and_then(|monitor| monitor.pending_config()) .map(|new_config| { + config = new_config; display.update_config(&config); processor.update_config(&config); - config = new_config; true }).unwrap_or(false); |