changeset 2069:d7782c42bdda

findtext search msg
author corvid <corvid@lavabit.com>
date Mon, 02 May 2011 02:31:09 +0000
parents 586c7a6f61aa
children 5e0654968e3c
files src/uicmd.cc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/uicmd.cc	Sun May 01 22:57:59 2011 +0200
+++ b/src/uicmd.cc	Mon May 02 02:31:09 2011 +0000
@@ -1300,14 +1300,14 @@
  * Search for next/previous occurrence of key.
  */
 void a_UIcmd_findtext_search(BrowserWindow *bw, const char *key,
-                             int case_sens, int backwards)
+                             int case_sens, int backward)
 {
    Layout *l = (Layout *)bw->render_layout;
 
-   switch (l->search(key, case_sens, backwards)) {
+   switch (l->search(key, case_sens, backward)) {
    case FindtextState::RESTART:
-      a_UIcmd_set_msg(bw, "No further occurrences of \"%s\". "
-                          "Restarting from the top.", key);
+      a_UIcmd_set_msg(bw, backward?"Top reached; restarting from the bottom."
+                                  :"Bottom reached; restarting from the top.");
       break;
    case FindtextState::NOT_FOUND:
       a_UIcmd_set_msg(bw, "\"%s\" not found.", key);