diff --git a/ChangeLog b/ChangeLog
index 35e2c73327442eb6d2661d6f8736dd1b011a6030..4c7b1e0369017b11d8129fff5346b4c0d0ee36ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-08  Benno Schulenberg  <bensberg@justemail.net>
+	* src/browser.c (browser_select_dirname, findnextfile): Rename
+	'currselected' to 'looking_at', for more contrast with 'selected',
+	and rename browser_select_filename() to browser_select_dirname().
+
 2015-04-07  Benno Schulenberg  <bensberg@justemail.net>
 	* src/browser.c (do_fileresearch): Don't search for the empty string
 	when nothing was sought yet (when historylog is set).
diff --git a/src/browser.c b/src/browser.c
index 3123359a252182895de383f03c9f958ef48add20..9db173d302856caf346d08d1e258598d439f0e76 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -3,7 +3,8 @@
  *   browser.c                                                            *
  *                                                                        *
  *   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,  *
- *   2010, 2011, 2013, 2014 Free Software Foundation, Inc.                *
+ *   2010, 2011, 2013, 2014, 2015 Free Software Foundation, Inc.          *
+ *                                                                        *
  *   This program is free software; you can redistribute it and/or modify *
  *   it under the terms of the GNU General Public License as published by *
  *   the Free Software Foundation; either version 3, or (at your option)  *
@@ -39,8 +40,7 @@ static int width = 0;
 static int longest = 0;
 	/* The number of columns in the longest filename in the list. */
 static size_t selected = 0;
-	/* The currently selected filename in the list.  This variable
-	 * is zero-based. */
+	/* The currently selected filename in the list; zero-based. */
 
 /* Our main file browser function.  path is the tilde-expanded path we
  * start browsing from. */
@@ -88,7 +88,7 @@ char *do_browser(char *path, DIR *dir)
     /* If prev_dir isn't NULL, select the directory saved in it, and
      * then blow it away. */
     if (prev_dir != NULL) {
-	browser_select_filename(prev_dir);
+	browser_select_dirname(prev_dir);
 
 	free(prev_dir);
 	prev_dir = NULL;
@@ -683,26 +683,18 @@ void browser_refresh(void)
     wnoutrefresh(edit);
 }
 
-/* Look for needle.  If we find it, set selected to its location.  Note
- * that needle must be an exact match for a file in the list.  The
- * return value specifies whether we found anything. */
-bool browser_select_filename(const char *needle)
+/* Look for needle.  If we find it, set selected to its location.
+ * Note that needle must be an exact match for a file in the list. */
+void browser_select_dirname(const char *needle)
 {
-    size_t currselected;
-    bool found = FALSE;
+    size_t looking_at = 0;
 
-    for (currselected = 0; currselected < filelist_len;
-	currselected++) {
-	if (strcmp(filelist[currselected], needle) == 0) {
-	    found = TRUE;
+    for (; looking_at < filelist_len; looking_at++) {
+	if (strcmp(filelist[looking_at], needle) == 0) {
+	    selected = looking_at;
 	    break;
 	}
     }
-
-    if (found)
-	selected = currselected;
-
-    return found;
 }
 
 /* Set up the system variables for a filename search.  Return -1 if the
@@ -764,11 +756,11 @@ int filesearch_init(void)
 /* Look for the given needle in the list of files. */
 void findnextfile(const char *needle)
 {
-    size_t currselected = selected;
+    size_t looking_at = selected;
 	/* The location in the file list of the filename we're looking at. */
     bool came_full_circle = FALSE;
 	/* Have we reached the starting file again? */
-    const char *filetail = tail(filelist[currselected]);
+    const char *filetail = tail(filelist[looking_at]);
 	/* The filename we display, minus the path. */
     const char *rev_start = filetail, *found = NULL;
 
@@ -779,7 +771,7 @@ void findnextfile(const char *needle)
 
 	/* If we've found a match and it's not the same filename where
 	 * we started, then we're done. */
-	if (found != NULL && currselected != selected)
+	if (found != NULL && looking_at != selected)
 	    break;
 
 	/* If we've found a match and we're back at the beginning, then
@@ -797,24 +789,24 @@ void findnextfile(const char *needle)
 
 	/* Move to the next filename in the list.  If we've reached the
 	 * end of the list, wrap around. */
-	if (currselected < filelist_len - 1)
-	    currselected++;
+	if (looking_at < filelist_len - 1)
+	    looking_at++;
 	else {
-	    currselected = 0;
+	    looking_at = 0;
 	    statusbar(_("Search Wrapped"));
 	}
 
-	if (currselected == selected)
+	if (looking_at == selected)
 	    /* We've reached the original starting file. */
 	    came_full_circle = TRUE;
 
-	filetail = tail(filelist[currselected]);
+	filetail = tail(filelist[looking_at]);
 
 	rev_start = filetail;
     }
 
     /* Select the one we've found. */
-    selected = currselected;
+    selected = looking_at;
 }
 
 /* Search for a filename. */
diff --git a/src/proto.h b/src/proto.h
index e01199eb1f07083f98379673dcdc6fbdfab9c085..722b866e34f44a6ee53c1d1b4d10bc74acbbb155 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -149,7 +149,7 @@ char *do_browse_from(const char *inpath);
 void browser_init(const char *path, DIR *dir);
 functionptrtype parse_browser_input(int *kbinput);
 void browser_refresh(void);
-bool browser_select_filename(const char *needle);
+void browser_select_dirname(const char *needle);
 int filesearch_init(void);
 void findnextfile(const char *needle);
 void filesearch_abort(void);