more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3737 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
49c85d076c
commit
3528a034f2
|
@ -78,7 +78,6 @@ char *do_browser(char *path, DIR *dir)
|
||||||
|
|
||||||
path = mallocstrassn(path, get_full_path(path));
|
path = mallocstrassn(path, get_full_path(path));
|
||||||
|
|
||||||
/* Assume that path exists and ends with a slash. */
|
|
||||||
assert(path != NULL && path[strlen(path) - 1] == '/');
|
assert(path != NULL && path[strlen(path) - 1] == '/');
|
||||||
|
|
||||||
/* Get the file list. */
|
/* Get the file list. */
|
||||||
|
@ -355,10 +354,10 @@ char *do_browser(char *path, DIR *dir)
|
||||||
if (abort)
|
if (abort)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Display the file list if we don't have a key, or if we do
|
/* Display the file list if we don't have a key, or if the
|
||||||
* have a key and the selected file has changed. Don't display
|
* selected file has changed. Don't display it if we selected a
|
||||||
* it if we selected a directory in prev_dir, since the file
|
* directory in prev_dir, since the file list has already been
|
||||||
* list will have already been displayed then. */
|
* displayed in that case. */
|
||||||
if ((kbinput == ERR && !found_prev_dir) || old_selected !=
|
if ((kbinput == ERR && !found_prev_dir) || old_selected !=
|
||||||
selected)
|
selected)
|
||||||
browser_refresh();
|
browser_refresh();
|
||||||
|
|
|
@ -148,8 +148,8 @@ void do_help(void (*refresh_func)(void))
|
||||||
if (abort)
|
if (abort)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Display the help text if we don't have a key, or if we do
|
/* Display the help text if we don't have a key, or if the help
|
||||||
* have a key and the help text has moved. */
|
* text has moved. */
|
||||||
if (kbinput == ERR || line != old_line) {
|
if (kbinput == ERR || line != old_line) {
|
||||||
blank_edit();
|
blank_edit();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue