aboutsummaryrefslogtreecommitdiffstats
path: root/screen_help.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-23 22:23:44 +0000
committerKalle Wallin <kaw@linux.se>2004-03-23 22:23:44 +0000
commit0b1bcfae90fd169c76ac541dc58ab5eae7d6f66f (patch)
treec51b7972b90f301efdee30a3013070b5e6dfd949 /screen_help.c
parentf839072214f7f4f3cb7723462cc9557e0ccbbad1 (diff)
downloadmpd-0b1bcfae90fd169c76ac541dc58ab5eae7d6f66f.tar.gz
mpd-0b1bcfae90fd169c76ac541dc58ab5eae7d6f66f.tar.xz
mpd-0b1bcfae90fd169c76ac541dc58ab5eae7d6f66f.zip
Added support for FIND and FIND_NEXT.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@423 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen_help.c')
-rw-r--r--screen_help.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/screen_help.c b/screen_help.c
index d38e4a6c9..3f10f9223 100644
--- a/screen_help.c
+++ b/screen_help.c
@@ -158,6 +158,29 @@ help_cmd(screen_t *screen, mpd_client_t *c, command_t cmd)
list_window_next_page(screen->helplist, help_text_rows);
screen->helplist->repaint = 1;
break;
+ case CMD_LIST_FIND:
+ if( screen->findbuf )
+ {
+ free(screen->findbuf);
+ screen->findbuf=NULL;
+ }
+ /* continue... */
+ case CMD_LIST_FIND_NEXT:
+ if( !screen->findbuf )
+ screen->findbuf=screen_readln(screen->status_window.w, "/");
+ if( list_window_find(screen->helplist,
+ list_callback,
+ c,
+ screen->findbuf) == 0 )
+ {
+ screen->helplist->repaint = 1;
+ }
+ else
+ {
+ screen_status_printf("Unable to find \'%s\'", screen->findbuf);
+ beep();
+ }
+ break;
default:
return 0;
}