rpms/mc/devel mc-refresh.patch,NONE,1.1 mc.spec,1.123,1.124

Jindrich Novy (jnovy) fedora-extras-commits at redhat.com
Tue Jun 19 11:47:08 UTC 2007


Author: jnovy

Update of /cvs/extras/rpms/mc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26506

Modified Files:
	mc.spec 
Added Files:
	mc-refresh.patch 
Log Message:
- refresh contents of terminal when resized during time
  expensive I/O operations (#236502)


mc-refresh.patch:

--- NEW FILE mc-refresh.patch ---
--- 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;
 	}


Index: mc.spec
===================================================================
RCS file: /cvs/extras/rpms/mc/devel/mc.spec,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- mc.spec	12 Jun 2007 14:49:42 -0000	1.123
+++ mc.spec	19 Jun 2007 11:46:30 -0000	1.124
@@ -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 @@
 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 @@
 %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 @@
 %dir %{_libexecdir}/mc
 
 %changelog
+* Tue Jun 19 2007 Jindrich Novy <jnovy at redhat.com> 4.6.1a-47
+- refresh contents of terminal when resized during time
+  expensive I/O operations (#236502)
+
 * Tue Jul 12 2007 Jindrich Novy <jnovy at redhat.com> 4.6.1a-46
 - update to new upstream CVS snapshot (2007-06-04-22)
 - don't print prompts multiple times when switching




More information about the fedora-extras-commits mailing list