reset_statusbar_cursor()
- Fix cursor placement problem by modeling the code more closely
after reset_cursor(). (DLR)
+ get_prompt_string()
+ - Adjust #ifdefs to leave out disabled keys entirely instead of
+ keeping enough code to just ignore them. (DLR)
- rcfile.c:
do_rcfile()
- Remove unneeded assert. (DLR)
#endif
switch (kbinput) {
- case NANO_TAB_KEY:
#ifndef DISABLE_TABCOMP
#ifndef NANO_TINY
+ case NANO_TAB_KEY:
if (history_list != NULL) {
if (last_kbinput != NANO_TAB_KEY)
complete_len = strlen(answer);
list);
update_statusbar_line(answer, statusbar_x);
-#endif /* !DISABLE_TABCOMP */
break;
- case NANO_PREVLINE_KEY:
+#endif /* !DISABLE_TABCOMP */
#ifndef NANO_TINY
+ case NANO_PREVLINE_KEY:
if (history_list != NULL) {
/* If we're scrolling up at the bottom of the
* history list and answer isn't blank, save answer
* statusbar prompt. */
finished = FALSE;
}
-#endif /* !NANO_TINY */
break;
case NANO_NEXTLINE_KEY:
-#ifndef NANO_TINY
if (history_list != NULL) {
/* Get the newer search from the history list and
* save it in answer. If there is no newer search,
update_statusbar_line(answer, statusbar_x);
}
-#endif /* !NANO_TINY */
break;
+#endif /* !NANO_TINY */
}
/* If we have a shortcut with an associated function, break out