1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

terminal: fix restoring of screen flags

This commit is contained in:
Tom Gundersen 2014-10-04 23:03:15 +02:00 committed by David Herrmann
parent bdf7026e95
commit b7af2c8740

View File

@ -1259,8 +1259,8 @@ static int screen_DECRC(term_screen *screen, const term_seq *seq) {
screen->gr = screen->saved.gr;
screen->glt = screen->saved.glt;
screen->grt = screen->saved.grt;
set_reset(screen, TERM_FLAG_AUTO_WRAP, screen->flags & TERM_FLAG_AUTO_WRAP);
set_reset(screen, TERM_FLAG_ORIGIN_MODE, screen->flags & TERM_FLAG_ORIGIN_MODE);
set_reset(screen, TERM_FLAG_AUTO_WRAP, screen->saved.flags & TERM_FLAG_AUTO_WRAP);
set_reset(screen, TERM_FLAG_ORIGIN_MODE, screen->saved.flags & TERM_FLAG_ORIGIN_MODE);
screen_cursor_set(screen, screen->saved.cursor_x, screen->saved.cursor_y);
return 0;