From 45e56efe9d1fc3025e5b24c79d7b4ab74946fd6e Mon Sep 17 00:00:00 2001 From: pi Date: Tue, 9 Dec 2014 12:03:13 +0000 Subject: misc/mc: re-add small patch that was deleted in r369133 Change: save/restore the sub-shell's screen on Ctrl+O and/or command execution PR: 194627 Submitted by: andriys@gmail.com --- misc/mc/Makefile | 2 +- misc/mc/files/patch-lib__tty__win.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/misc/mc/Makefile b/misc/mc/Makefile index b560d0a9e6eb..e7b45738ac4c 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -3,7 +3,7 @@ PORTNAME= mc PORTVERSION= 4.8.13 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc shells MASTER_SITES= http://ftp.midnight-commander.org/ \ http://ftp.osuosl.org/pub/midnightcommander/ \ diff --git a/misc/mc/files/patch-lib__tty__win.c b/misc/mc/files/patch-lib__tty__win.c index 3aafff6bf4b5..4e497178418b 100644 --- a/misc/mc/files/patch-lib__tty__win.c +++ b/misc/mc/files/patch-lib__tty__win.c @@ -1,5 +1,14 @@ --- lib/tty/win.c.orig 2014-09-02 09:23:58 UTC +++ lib/tty/win.c ++@@ -95,7 +95,7 @@ ++ void ++ do_enter_ca_mode (void) ++ { ++- if (mc_global.tty.xterm_flag && smcup != NULL) +++ if (mc_global.tty.xterm_flag) ++ { ++ fprintf (stdout, /* ESC_STR ")0" */ ESC_STR "7" ESC_STR "[?47h"); ++ fflush (stdout); @@ -107,7 +107,7 @@ void do_exit_ca_mode (void) -- cgit