diff options
author | Eduardo Chappa <chappa@washington.edu> | 2013-08-04 21:50:43 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2013-08-04 21:50:43 -0600 |
commit | 82ec113957d8297ed08c51c20cbc4b0a6f623d4e (patch) | |
tree | bc58ae92ca1627554947f894206af9a47e8cee60 /pico/browse.c | |
parent | 33d5c0604e830bb65c2f5ccd69170b1c1453802b (diff) | |
download | alpine-82ec113957d8297ed08c51c20cbc4b0a6f623d4e.tar.xz |
* New version 2.10.99999
* Pico: search backwards.
* do not allow List- headers to be set up by users in accordance with
RFC 2369.
* minor fixes for new justification support (add comparison of a line
with the previous *and* the next).
Diffstat (limited to 'pico/browse.c')
-rw-r--r-- | pico/browse.c | 8 |
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) ; |