diff options
author | Tom Gundersen <teg@jklm.no> | 2014-10-04 23:03:15 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-10-05 14:17:14 +0200 |
commit | b7af2c8740e91a73348457fade97609b93e70a8d (patch) | |
tree | 3d13e9f3422553dcf3055de90f46b52477213128 /src/libsystemd-terminal | |
parent | bdf7026e9557349cd3eeb291c01655d5f2a55db8 (diff) |
terminal: fix restoring of screen flags
Diffstat (limited to 'src/libsystemd-terminal')
-rw-r--r-- | src/libsystemd-terminal/term-screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-terminal/term-screen.c b/src/libsystemd-terminal/term-screen.c index 145dcdaee5..9026c25efe 100644 --- a/src/libsystemd-terminal/term-screen.c +++ b/src/libsystemd-terminal/term-screen.c @@ -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; |