From a2602d4ca11dd1e8277a03d1946b22d6256f6be3 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Tue, 19 Jun 2007 11:46:30 +0000 Subject: [PATCH] - refresh contents of terminal when resized during time expensive I/O operations (#236502) --- mc-refresh.patch | 14 ++++++++++++++ mc.spec | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 mc-refresh.patch diff --git a/mc-refresh.patch b/mc-refresh.patch new file mode 100644 index 0000000..2c71750 --- /dev/null +++ b/mc-refresh.patch @@ -0,0 +1,14 @@ +--- mc-2007-06-04-22/src/file.c.refresh 2007-06-19 10:23:47.000000000 +0200 ++++ mc-2007-06-04-22/src/file.c 2007-06-19 10:33:02.000000000 +0200 +@@ -746,7 +746,10 @@ copy_file_file (FileOpContext *ctx, cons + return_status = + file_progress_show (ctx, n_read_total + ctx->do_reget, file_size); + } +- mc_refresh (); ++ if (winch_flag) ++ change_screen_size (); ++ else ++ mc_refresh(); + if (return_status != FILE_CONT) + goto ret; + } diff --git a/mc.spec b/mc.spec index 08ce8aa..fe2d2bd 100644 --- a/mc.spec +++ b/mc.spec @@ -3,7 +3,7 @@ Summary: User-friendly text console file manager and visual shell Name: mc Version: 4.6.1a -Release: 46.20070604cvs%{?dist} +Release: 47.20070604cvs%{?dist} Epoch: 1 License: GPL Group: System Environment/Shells @@ -29,6 +29,7 @@ Patch12: mc-ipv6.patch Patch13: mc-newlinedir.patch Patch14: mc-cloexec.patch Patch15: mc-prompt.patch +Patch16: mc-refresh.patch %description Midnight Commander is a visual shell much like a file manager, only @@ -56,6 +57,7 @@ specific files. %patch13 -p1 -b .newlinedir %patch14 -p1 -b .cloexec %patch15 -p1 -b .prompt +%patch16 -p1 -b .refresh # convert files in /lib to UTF-8 pushd lib @@ -194,6 +196,10 @@ rm -rf $RPM_BUILD_ROOT %dir %{_libexecdir}/mc %changelog +* Tue Jun 19 2007 Jindrich Novy 4.6.1a-47 +- refresh contents of terminal when resized during time + expensive I/O operations (#236502) + * Tue Jul 12 2007 Jindrich Novy 4.6.1a-46 - update to new upstream CVS snapshot (2007-06-04-22) - don't print prompts multiple times when switching