teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame 0508-terminal-fix-restoring-of-screen-flags.patch

Zbigniew Jędrzejewski-Szmek 62fe94
From b7af2c8740e91a73348457fade97609b93e70a8d Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: Tom Gundersen <teg@jklm.no>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Sat, 4 Oct 2014 23:03:15 +0200
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] terminal: fix restoring of screen flags
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 src/libsystemd-terminal/term-screen.c | 4 ++--
Zbigniew Jędrzejewski-Szmek 62fe94
 1 file changed, 2 insertions(+), 2 deletions(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/src/libsystemd-terminal/term-screen.c b/src/libsystemd-terminal/term-screen.c
Zbigniew Jędrzejewski-Szmek 62fe94
index 145dcdaee5..9026c25efe 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/src/libsystemd-terminal/term-screen.c
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/src/libsystemd-terminal/term-screen.c
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -1259,8 +1259,8 @@ static int screen_DECRC(term_screen *screen, const term_seq *seq) {
Zbigniew Jędrzejewski-Szmek 62fe94
         screen->gr = screen->saved.gr;
Zbigniew Jędrzejewski-Szmek 62fe94
         screen->glt = screen->saved.glt;
Zbigniew Jędrzejewski-Szmek 62fe94
         screen->grt = screen->saved.grt;
Zbigniew Jędrzejewski-Szmek 62fe94
-        set_reset(screen, TERM_FLAG_AUTO_WRAP, screen->flags & TERM_FLAG_AUTO_WRAP);
Zbigniew Jędrzejewski-Szmek 62fe94
-        set_reset(screen, TERM_FLAG_ORIGIN_MODE, screen->flags & TERM_FLAG_ORIGIN_MODE);
Zbigniew Jędrzejewski-Szmek 62fe94
+        set_reset(screen, TERM_FLAG_AUTO_WRAP, screen->saved.flags & TERM_FLAG_AUTO_WRAP);
Zbigniew Jędrzejewski-Szmek 62fe94
+        set_reset(screen, TERM_FLAG_ORIGIN_MODE, screen->saved.flags & TERM_FLAG_ORIGIN_MODE);
Zbigniew Jędrzejewski-Szmek 62fe94
         screen_cursor_set(screen, screen->saved.cursor_x, screen->saved.cursor_y);
Zbigniew Jędrzejewski-Szmek 62fe94
 
Zbigniew Jędrzejewski-Szmek 62fe94
         return 0;