1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-03 04:34:21 -05:00

Fix smcup/rmcup toggle bug

Resolves #634.
This commit is contained in:
Joe Wilm 2017-08-09 13:24:51 -05:00 committed by Joe Wilm
parent 6de7ee0c51
commit 071c72b3cd

View file

@ -1736,7 +1736,9 @@ impl ansi::Handler for Term {
match mode {
ansi::Mode::SwapScreenAndSetRestoreCursor => {
self.save_cursor_position();
self.swap_alt();
if !self.alt {
self.swap_alt();
}
self.save_cursor_position();
},
ansi::Mode::ShowCursor => self.mode.insert(mode::SHOW_CURSOR),
@ -1763,7 +1765,9 @@ impl ansi::Handler for Term {
match mode {
ansi::Mode::SwapScreenAndSetRestoreCursor => {
self.restore_cursor_position();
self.swap_alt();
if self.alt {
self.swap_alt();
}
self.restore_cursor_position();
},
ansi::Mode::ShowCursor => self.mode.remove(mode::SHOW_CURSOR),