setting current and current_x back to their original values,
in case current_x's original value is greater than the width
of the screen. (DLR)
+- winio.c:
+ nanogetstr()
+ - Remove a few unnecessary breaks occurring immediately after
+ gotos, and properly interpret the up and down arrow keys when
+ ALT_KEYPAD is set. (DLR)
- configure.ac:
- Enable autodetection of broken regexec(). (DLR) Re-added
regex.h check to ensure compile under Debian w/autoconf 1.6.
case KEY_UP:
case NANO_UP_KEY:
#ifndef NANO_SMALL
+ do_upkey:
if (history_list != NULL) {
/* If there's no previous temp holder, or if we already
case KEY_DOWN:
case NANO_DOWN_KEY:
#ifndef NANO_SMALL
+ do_downkey:
if (history_list != NULL) {
/* get newer search from the history list */
if ((history = get_history_newer(history_list)) != NULL) {
break;
case '[':
switch (kbinput = wgetch(edit)) {
+ case 'A':
+#ifndef NANO_SMALL
+ goto do_upkey;
+#else
+ break;
+#endif
+ case 'B':
+#ifndef NANO_SMALL
+ goto do_downkey;
+#else
+ break;
+#endif
case 'C':
if (x < xend)
x++;
if (paintlen == COLS)
goto skip_step_two;
-
step_two: /* Second step, we look for starts on this line. */
start_col = 0;
while (start_col < start + COLS) {
case '5': /* Alt-[-5 = Page Up */
wgetch(edit);
goto do_pageupkey;
- break;
case 'V': /* Alt-[-V = Page Up in Hurd Console */
case 'I': /* Alt-[-I = Page Up - FreeBSD Console */
goto do_pageupkey;
- break;
case '6': /* Alt-[-6 = Page Down */
wgetch(edit);
goto do_pagedownkey;
- break;
case 'U': /* Alt-[-U = Page Down in Hurd Console */
case 'G': /* Alt-[-G = Page Down - FreeBSD Console */
goto do_pagedownkey;
- break;
}
break;
}