window when using nohelp toggle (bug discovered by Rocco Corsi).
- nano.1, nano.1.html:
- Updated man page for -b, -e, -f and expanded explanation for -p.
+- winio.c
+ do_help()
+ - Force keypad on so F-keys and PageUp/Down will work properly.
+ Added check for NANO_EXIT_FKEY to loop.
- utils.c:
new_magicline()
- Increment totsize!! We decrement it when we've read a file,
void replace_abort(void);
void add_to_cutbuffer(filestruct * inptr);
void do_replace_highlight(int highlight_flag, char *word);
+void keypad_on(int yesno);
#ifdef NANO_EXTRA
void do_credits(void);
#endif
int i, j, row = 0, page = 1, kbinput = 0, no_more = 0;
int no_help_flag = 0;
+
+ /* Oh well, they've asked for the help menu, if the keypad is not on now
+ we're going to have to turn it on */
+ keypad_on(TRUE);
+
blank_edit();
curs_set(0);
blank_statusbar();
no_more = 1;
continue;
}
- } while ((kbinput = wgetch(edit)) != NANO_EXIT_KEY);
+ } while ((kbinput = wgetch(edit)) != NANO_EXIT_KEY &&
+ kbinput != NANO_EXIT_FKEY);
+
if (no_help_flag) {
werase(bottomwin);
wrefresh(bottomwin);