aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_utils.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2005-06-15 20:36:50 +0000
committerKalle Wallin <kaw@linux.se>2005-06-15 20:36:50 +0000
commitaa11ee4b0f6b186c0beca5b6bc1f818cebe981f5 (patch)
treeaba36263e0a5f7c09980184a19d2c3c566f68d82 /src/screen_utils.c
parentc94d06df7370bfe88f6a42f22142f05927c5c44b (diff)
downloadmpd-aa11ee4b0f6b186c0beca5b6bc1f818cebe981f5.tar.gz
mpd-aa11ee4b0f6b186c0beca5b6bc1f818cebe981f5.tar.xz
mpd-aa11ee4b0f6b186c0beca5b6bc1f818cebe981f5.zip
New configuraton option: find-show-last
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3359 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen_utils.c')
-rw-r--r--src/screen_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_utils.c b/src/screen_utils.c
index 09ce85787..86b779245 100644
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
@@ -116,6 +116,7 @@ screen_find(screen_t *screen,
int reversed = 0;
int retval = 0;
char *prompt = FIND_PROMPT;
+ char *value = options.find_show_last_pattern ? (char *) -1 : NULL;
if( findcmd==CMD_LIST_RFIND ||findcmd==CMD_LIST_RFIND_NEXT )
{
@@ -138,7 +139,7 @@ screen_find(screen_t *screen,
if( !screen->findbuf )
screen->findbuf=screen_readln(screen->status_window.w,
prompt,
- (char *) -1, //NULL,
+ value,
&screen->find_history,
NULL);
if( !screen->findbuf || !screen->findbuf[0] )