summaryrefslogtreecommitdiff
path: root/pico/browse.c
diff options
context:
space:
mode:
Diffstat (limited to 'pico/browse.c')
-rw-r--r--pico/browse.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pico/browse.c b/pico/browse.c
index 46e01fd0..93de8066 100644
--- a/pico/browse.c
+++ b/pico/browse.c
@@ -4,8 +4,8 @@ static char rcsid[] = "$Id: browse.c 942 2008-03-04 18:21:33Z hubert@u.washingto
/*
* ========================================================================
- * Copyright 2006-2008 University of Washington
* Copyright 2013 Eduardo Chappa
+ * Copyright 2006-2008 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1595,8 +1595,9 @@ FileBrowse(char *dir, size_t dirlen, char *fn, size_t fnlen,
i = 0;
while(!i){
+ int bsearch = 0;
- switch(readpattern(_("File name to find"), FALSE)){
+ switch(readpattern(_("File name to find"), FALSE, bsearch)){
case HELPCH:
emlwrite(_("\007No help yet!"), NULL);
/* remove break and sleep after help text is installed */
@@ -1605,6 +1606,9 @@ FileBrowse(char *dir, size_t dirlen, char *fn, size_t fnlen,
case (CTRL|'L'):
PaintBrowser(gmp, 0, &crow, &ccol);
break;
+ case (CTRL|'P'):
+ bsearch = bsearch == 0 ? 1 : 0;
+ break;
case (CTRL|'Y'): /* first first cell */
for(tp = gmp->top; tp->prev; tp = tp->prev)
;