diff --git a/ChangeLog b/ChangeLog
index de0899275df0bf1e93a984c363f4af5dde84895c..5f487a134dbe2012141dbae0c053b660221d633c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	also when it's an invalid regex.  This fixes Savannah bug #47440.
 	* src/search.c (search_init, do_replace): Don't bother setting the
 	current answer to the empty string, as do_prompt() can handle a NULL.
+	* src/browser.c (do_browser): Delete a snippet of dead code.
 
 2016-03-17  Benno Schulenberg  <bensberg@justemail.net>
 	* src/search.c (do_research): Use the Search key bindings also during
diff --git a/src/browser.c b/src/browser.c
index 27ac7ac1c514a98c6563c25c3c523a508d9bd2dc..2d30bbdd8294ad0a95c900eb495302be40014a0a 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -228,14 +228,6 @@ char *do_browser(char *path, DIR *dir)
 	    if (i < 0 || *answer == '\n') {
 		statusbar(_("Cancelled"));
 		continue;
-	    } else if (i != 0) {
-		/* Put back the "Go to Directory" key and save
-		 * answer in ans, so that the file list is displayed
-		 * again, the prompt is displayed again, and what we
-		 * typed before at the prompt is displayed again. */
-		unget_kbinput(sc_seq_or(do_gotolinecolumn_void, 0), FALSE, FALSE);
-		ans = mallocstrcpy(ans, answer);
-		continue;
 	    }
 
 	    /* Convert newlines to nulls in the directory name. */