1
1

* view.c: Always call display() before close_error_pipe() to make

sure the screen looks nice.
	http://mail.gnome.org/archives/mc-devel/2005-July/msg00194.html
Этот коммит содержится в:
Roland Illig 2005-07-13 21:30:28 +00:00
родитель ea48e88eea
Коммит de5d9b1d40
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2005-07-13 Roland Illig <roland.illig@gmx.de>
* view.c: Always call display() before close_error_pipe() to make
sure the screen looks nice.
http://mail.gnome.org/archives/mc-devel/2005-July/msg00194.html
2005-07-12 Roland Illig <roland.illig@gmx.de> 2005-07-12 Roland Illig <roland.illig@gmx.de>
* view.c: Added some paragraph comments. Changed some literal * view.c: Added some paragraph comments. Changed some literal

Просмотреть файл

@ -247,6 +247,7 @@ static void view_labels (WView * view);
static void view_init_growbuf (WView *); static void view_init_growbuf (WView *);
static void view_place_cursor (WView *view); static void view_place_cursor (WView *view);
static void display (WView *);
/* {{{ Helper Functions }}} */ /* {{{ Helper Functions }}} */
@ -406,6 +407,7 @@ view_growbuf_read_until (WView *view, offset_type ofs)
if (nread == 0) { if (nread == 0) {
view->growbuf_finished = TRUE; view->growbuf_finished = TRUE;
(void) pclose (view->ds_stdio_pipe); (void) pclose (view->ds_stdio_pipe);
display (view);
close_error_pipe (0, NULL); close_error_pipe (0, NULL);
view->ds_stdio_pipe = NULL; view->ds_stdio_pipe = NULL;
return; return;
@ -657,6 +659,7 @@ view_close_datasource (WView *view)
case DS_STDIO_PIPE: case DS_STDIO_PIPE:
if (view->ds_stdio_pipe != NULL) { if (view->ds_stdio_pipe != NULL) {
(void) pclose (view->ds_stdio_pipe); (void) pclose (view->ds_stdio_pipe);
display (view);
close_error_pipe (0, NULL); close_error_pipe (0, NULL);
view->ds_stdio_pipe = NULL; view->ds_stdio_pipe = NULL;
} }
@ -1305,6 +1308,7 @@ view_load_command_output (WView *view, const char *command)
open_error_pipe (); open_error_pipe ();
if ((fp = popen (command, "r")) == NULL) { if ((fp = popen (command, "r")) == NULL) {
/* Avoid two messages. Message from stderr has priority. */ /* Avoid two messages. Message from stderr has priority. */
display (view);
if (!close_error_pipe (view_is_in_panel (view) ? -1 : 1, NULL)) if (!close_error_pipe (view_is_in_panel (view) ? -1 : 1, NULL))
view_show_error (view, _(" Cannot spawn child process ")); view_show_error (view, _(" Cannot spawn child process "));
return FALSE; return FALSE;
@ -1316,6 +1320,7 @@ view_load_command_output (WView *view, const char *command)
view_close_datasource (view); view_close_datasource (view);
/* Avoid two messages. Message from stderr has priority. */ /* Avoid two messages. Message from stderr has priority. */
display (view);
if (!close_error_pipe (view_is_in_panel (view) ? -1 : 1, NULL)) if (!close_error_pipe (view_is_in_panel (view) ? -1 : 1, NULL))
view_show_error (view, _("Empty output from child filter")); view_show_error (view, _("Empty output from child filter"));
return FALSE; return FALSE;