aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_file.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-22 15:14:34 +0000
committerKalle Wallin <kaw@linux.se>2004-06-22 15:14:34 +0000
commit0884a2374860cbd1fad2b26443943ebd7765ec34 (patch)
tree08e3c27a4d8dd12dfb76c9dd7f36e42318b98700 /src/screen_file.c
parent950aa3b9d1d34cd93af1624d65c52b66dc9e9fa2 (diff)
downloadmpd-0884a2374860cbd1fad2b26443943ebd7765ec34.tar.gz
mpd-0884a2374860cbd1fad2b26443943ebd7765ec34.tar.xz
mpd-0884a2374860cbd1fad2b26443943ebd7765ec34.zip
Clear the main window on CMD_SCREEN_UPDATE
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1617 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen_file.c')
-rw-r--r--src/screen_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screen_file.c b/src/screen_file.c
index 8b79f279f..3fbdf4329 100644
--- a/src/screen_file.c
+++ b/src/screen_file.c
@@ -572,6 +572,9 @@ browse_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
handle_delete(screen, c);
break;
case CMD_SCREEN_UPDATE:
+ screen->painted = 0;
+ lw->clear = 1;
+ lw->repaint = 1;
filelist = mpdclient_filelist_update(c, filelist);
list_window_check_selected(lw, filelist->length);
screen_status_printf(_("Screen updated!"));