aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-19 19:53:38 +0000
committerKalle Wallin <kaw@linux.se>2004-06-19 19:53:38 +0000
commitf7c5cc9dc9cda6c1465b736b878e83734751d0dd (patch)
tree168da56d0ed60fe35af4d5a100b04ec78f0ac193 /src/screen_play.c
parentfc0fe1147f7f69d3d181eb254fd6e23991aa5b20 (diff)
downloadmpd-f7c5cc9dc9cda6c1465b736b878e83734751d0dd.tar.gz
mpd-f7c5cc9dc9cda6c1465b736b878e83734751d0dd.tar.xz
mpd-f7c5cc9dc9cda6c1465b736b878e83734751d0dd.zip
Make shure the list window is repainted after a completion list is displayed
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1569 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/screen_play.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index fc130b986..60d0e2586 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -133,7 +133,11 @@ handle_save_playlist(screen_t *screen, mpdclient_t *c, char *name)
void post_completion_cb(GCompletion *gcmp, gchar *line, GList *items)
{
if( g_list_length(items)>=1 )
- screen_display_completion_list(screen, items);
+ {
+ screen_display_completion_list(screen, items);
+ lw->clear = 1;
+ lw->repaint = 1;
+ }
}
if( name==NULL )
@@ -240,8 +244,12 @@ handle_add_to_playlist(screen_t *screen, mpdclient_t *c)
void post_completion_cb(GCompletion *gcmp, gchar *line, GList *items)
{
D("post_completion()...\n");
- if( g_list_length(items)>1 )
- screen_display_completion_list(screen, items);
+ if( g_list_length(items)>=1 )
+ {
+ screen_display_completion_list(screen, items);
+ lw->clear = 1;
+ lw->repaint = 1;
+ }
if( line && line[0] && line[strlen(line)-1]=='/' &&
string_list_find(dir_list, line) == NULL )
@@ -274,9 +282,6 @@ handle_add_to_playlist(screen_t *screen, mpdclient_t *c)
if( path && path[0] )
mpdclient_cmd_add_path(c, path);
- lw->clear = 1;
- lw->repaint = 1;
-
return 0;
}