aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-21 21:05:27 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-21 21:05:27 -0700
commitff1ceb523dc3d211f171e9cf661d8516d108f2d0 (patch)
treed6d50cef9b418bac1a87eac26e931c7f364abc74
parent969b9005f5d8b3fadc7719676057e45745ba6e05 (diff)
downloadalacritty-ff1ceb523dc3d211f171e9cf661d8516d108f2d0.tar.gz
alacritty-ff1ceb523dc3d211f171e9cf661d8516d108f2d0.zip
Fix refresh bug
Terminal output wouldn't reliably refresh the screen. Fix is to only modify this flag when the terminal lock is held which suggests a larger refactoring should happen.
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index eff7ddaa..0b72c374 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -211,10 +211,9 @@ fn main() {
// Wait for something to happen
processor.process_events(&window);
- signal_flag.set(false);
-
// Maybe draw the terminal
let terminal = terminal.lock_high();
+ signal_flag.set(false);
if terminal.dirty {
display.draw(terminal);
}