aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-12-27 22:46:57 -0500
committerJoe Wilm <joe@jwilm.com>2016-12-27 22:46:57 -0500
commit8af19c3f0cf0950f8a9bcc664448817e443d07ad (patch)
tree0b1d1a641de5aa30f7c738c53dff4fee0fcbcf35 /src/main.rs
parentae470bf68bf27921109890da3d90a5b61fa6a7aa (diff)
downloadalacritty-8af19c3f0cf0950f8a9bcc664448817e443d07ad.tar.gz
alacritty-8af19c3f0cf0950f8a9bcc664448817e443d07ad.zip
Fix bug with config reloading
The reloaded config was not used immediately.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
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);