in do_browser(), make fileline and the static selected size_t's, since
the latter can hold the value of the former, and the former can be that large git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3312 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
9b33d51774
commit
27ad0cdb37
|
@ -33,6 +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
|
||||||
|
latter can hold the value of the former, and the former can be
|
||||||
|
that large. (DLR)
|
||||||
- chars.c:
|
- chars.c:
|
||||||
mbstrchr()
|
mbstrchr()
|
||||||
- Make parameter c const. (DLR)
|
- Make parameter c const. (DLR)
|
||||||
|
|
|
@ -38,7 +38,7 @@ static int width = 0;
|
||||||
/* The number of columns to display the list in. */
|
/* The number of columns to display the list in. */
|
||||||
static int longest = 0;
|
static int longest = 0;
|
||||||
/* The number of columns in the longest filename in the list. */
|
/* The number of columns in the longest filename in the list. */
|
||||||
static int selected = 0;
|
static size_t selected = 0;
|
||||||
/* The currently selected filename in the list. */
|
/* The currently selected filename in the list. */
|
||||||
|
|
||||||
/* Our browser function. path is the path to start browsing from.
|
/* Our browser function. path is the path to start browsing from.
|
||||||
|
@ -89,7 +89,8 @@ char *do_browser(char *path, DIR *dir)
|
||||||
do {
|
do {
|
||||||
bool abort = FALSE;
|
bool abort = FALSE;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
int i, fileline;
|
int i;
|
||||||
|
size_t fileline;
|
||||||
char *new_path;
|
char *new_path;
|
||||||
/* Used by the "Go To Directory" prompt. */
|
/* Used by the "Go To Directory" prompt. */
|
||||||
#ifndef DISABLE_MOUSE
|
#ifndef DISABLE_MOUSE
|
||||||
|
|
Loading…
Reference in New Issue