Commit 231158d6 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in do_browser(), make old_selected a size_t too, to match selected

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 20323a82
Showing with 4 additions and 4 deletions
+4 -4
...@@ -33,9 +33,9 @@ CVS code - ...@@ -33,9 +33,9 @@ CVS code -
the file list display after returning from the help browser at the file list display after returning from the help browser at
the "Go To Directory" prompt. (DLR) the "Go To Directory" prompt. (DLR)
- Rename variable j to i, for consistency. (DLR) - Rename variable j to i, for consistency. (DLR)
- Make fileline and the static selected size_t's, since the - Make fileline, old_selected, and the static selected size_t's,
latter can hold the value of the former, and the former can be since the first and second can hold the value of the third,
that large. (DLR) and the first can be that large. (DLR)
- chars.c: - chars.c:
mbstrchr() mbstrchr()
- Make parameter c const. (DLR) - Make parameter c const. (DLR)
......
...@@ -114,7 +114,7 @@ char *do_browser(char *path, DIR *dir) ...@@ -114,7 +114,7 @@ char *do_browser(char *path, DIR *dir)
/* If we clicked in the edit window, we probably clicked /* If we clicked in the edit window, we probably clicked
* on a file. */ * on a file. */
if (wenclose(edit, mevent.y, mevent.x)) { if (wenclose(edit, mevent.y, mevent.x)) {
int old_selected = selected; size_t old_selected = selected;
/* Subtract out the size of topwin. */ /* Subtract out the size of topwin. */
mevent.y -= 2 - no_more_space(); mevent.y -= 2 - no_more_space();
......
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