From 51f4e9634dc17f7b433967b0cc46a0945cf26b85 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Sep 2008 12:25:52 +0200 Subject: list_window: don't reset *highlight to 0 Since the list_window code sets highlight to 0 before it calls the list_callback, the callback itself doesn't have to reset the flag. --- src/screen_file.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/screen_file.c') diff --git a/src/screen_file.c b/src/screen_file.c index 264045739..16f935242 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -156,7 +156,6 @@ browse_lw_callback(unsigned idx, int *highlight, void *data) filelist_entry_t *entry; mpd_InfoEntity *entity; - *highlight = 0; if( (entry=(filelist_entry_t *)g_list_nth_data(fl->list,idx))==NULL ) return NULL; -- cgit v1.2.3