1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

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.
This commit is contained in:
Joe Wilm 2016-09-21 21:05:27 -07:00
parent 969b9005f5
commit ff1ceb523d

View file

@ -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);
}