Commit b27ab4f0 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

browser: place the cursor properly on the selected file when -g is used

Simply redraw the browser screen upon every keystroke when --showcursor
is in effect, to be certain that the cursor will be placed again at the
correct spot.

This fixes https://savannah.gnu.org/bugs/?52078
and fixes https://savannah.gnu.org/bugs/?52079

.
Reported-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -109,7 +109,7 @@ char *do_browser(char *path)
/* Display (or redisplay) the file list if the list itself or
* the selected file has changed. */
if (old_selected != selected)
if (old_selected != selected || ISSET(SHOW_CURSOR))
browser_refresh();
old_selected = selected;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment