in do_browser() and do_help(), don't treat NANO_CANCEL_KEY as
NANO_EXIT_KEY anymore, for consistency git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2478 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
56074a1da6
commit
9cf1df1f06
|
@ -11,6 +11,9 @@ CVS code -
|
||||||
get_next_filename()
|
get_next_filename()
|
||||||
- Use a long instead of an int for the number prepended to the
|
- Use a long instead of an int for the number prepended to the
|
||||||
filename. (DLR)
|
filename. (DLR)
|
||||||
|
do_browser()
|
||||||
|
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
|
||||||
|
consistency. (DLR)
|
||||||
- nano.c:
|
- nano.c:
|
||||||
help_init()
|
help_init()
|
||||||
- Remove extra space from main help text (Jordi).
|
- Remove extra space from main help text (Jordi).
|
||||||
|
@ -26,6 +29,9 @@ CVS code -
|
||||||
num_of_digits()
|
num_of_digits()
|
||||||
- Use a ssize_t instead of an int. (DLR)
|
- Use a ssize_t instead of an int. (DLR)
|
||||||
- winio.c:
|
- winio.c:
|
||||||
|
do_help()
|
||||||
|
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
|
||||||
|
consistency. (DLR)
|
||||||
total_update()
|
total_update()
|
||||||
- Simplify to call clearok(TRUE) and wrefresh() on curscr, which
|
- Simplify to call clearok(TRUE) and wrefresh() on curscr, which
|
||||||
updates the entire screen in fewer function calls. (DLR)
|
updates the entire screen in fewer function calls. (DLR)
|
||||||
|
|
|
@ -2652,7 +2652,6 @@ char *do_browser(char *path, DIR *dir)
|
||||||
goto change_browser_directory;
|
goto change_browser_directory;
|
||||||
|
|
||||||
/* Abort the browser. */
|
/* Abort the browser. */
|
||||||
case NANO_CANCEL_KEY:
|
|
||||||
case NANO_EXIT_KEY:
|
case NANO_EXIT_KEY:
|
||||||
case NANO_EXIT_FKEY:
|
case NANO_EXIT_FKEY:
|
||||||
case 'E': /* Pico compatibility. */
|
case 'E': /* Pico compatibility. */
|
||||||
|
|
13
src/winio.c
13
src/winio.c
|
@ -3907,11 +3907,6 @@ void do_help(void)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case NANO_NEXTPAGE_KEY:
|
|
||||||
case NANO_NEXTPAGE_FKEY:
|
|
||||||
if (!no_more)
|
|
||||||
line += editwinrows - 2;
|
|
||||||
break;
|
|
||||||
case NANO_PREVPAGE_KEY:
|
case NANO_PREVPAGE_KEY:
|
||||||
case NANO_PREVPAGE_FKEY:
|
case NANO_PREVPAGE_FKEY:
|
||||||
if (line > 0) {
|
if (line > 0) {
|
||||||
|
@ -3920,6 +3915,11 @@ void do_help(void)
|
||||||
line = 0;
|
line = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case NANO_NEXTPAGE_KEY:
|
||||||
|
case NANO_NEXTPAGE_FKEY:
|
||||||
|
if (!no_more)
|
||||||
|
line += editwinrows - 2;
|
||||||
|
break;
|
||||||
case NANO_PREVLINE_KEY:
|
case NANO_PREVLINE_KEY:
|
||||||
if (line > 0)
|
if (line > 0)
|
||||||
line--;
|
line--;
|
||||||
|
@ -3959,8 +3959,7 @@ void do_help(void)
|
||||||
|
|
||||||
skip_redisplay:
|
skip_redisplay:
|
||||||
kbinput = get_kbinput(edit, &meta_key, &func_key);
|
kbinput = get_kbinput(edit, &meta_key, &func_key);
|
||||||
} while (kbinput != NANO_CANCEL_KEY && kbinput != NANO_EXIT_KEY &&
|
} while (kbinput != NANO_EXIT_KEY && kbinput != NANO_EXIT_FKEY);
|
||||||
kbinput != NANO_EXIT_FKEY);
|
|
||||||
|
|
||||||
#ifndef DISABLE_MOUSE
|
#ifndef DISABLE_MOUSE
|
||||||
currshortcut = oldshortcut;
|
currshortcut = oldshortcut;
|
||||||
|
|
Loading…
Reference in New Issue