mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-24 19:36:52 +03:00
Fixes for dir crash by rocco and exit called on insert file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@451 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
150469a646
commit
816a165b4b
@ -20,6 +20,11 @@ General -
|
|||||||
- removed skipping . and .. when tabulating matches.
|
- removed skipping . and .. when tabulating matches.
|
||||||
- Added the (char *) sizeof when allocating memory for the filename
|
- Added the (char *) sizeof when allocating memory for the filename
|
||||||
array (Rocco).
|
array (Rocco).
|
||||||
|
do_browser()
|
||||||
|
- Don't decrement longest by the length of path. Fixes crashes
|
||||||
|
on entering various dirs (Rocco).
|
||||||
|
- Don't ungetch() the exit key, unneeded, fixes inerting a file
|
||||||
|
causes exit code.
|
||||||
- nano.c:
|
- nano.c:
|
||||||
main()
|
main()
|
||||||
- Reorder the getopt options to be more or less alphabetical
|
- Reorder the getopt options to be more or less alphabetical
|
||||||
|
5
files.c
5
files.c
@ -1131,8 +1131,6 @@ char **browser_init(char *path, int *longest, int *numents)
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
longest -= strlen(path);
|
|
||||||
|
|
||||||
if (*longest > COLS - 1)
|
if (*longest > COLS - 1)
|
||||||
*longest = COLS - 1;
|
*longest = COLS - 1;
|
||||||
|
|
||||||
@ -1323,9 +1321,6 @@ char *do_browser(char *inpath)
|
|||||||
/* Start over again with the new path value */
|
/* Start over again with the new path value */
|
||||||
return do_browser(path);
|
return do_browser(path);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
/* Work around for duplicating code */
|
|
||||||
ungetch(NANO_EXIT_KEY);
|
|
||||||
retval = path;
|
retval = path;
|
||||||
abort = 1;
|
abort = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user