in get_prompt_string(), include the handling of the help key even when
help is disabled, so that we aren't erroneously kicked out of the statusbar prompt under any circumstances git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3420 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
40e0572100
commit
891e0ec281
|
@ -114,6 +114,12 @@ CVS code -
|
||||||
- nano.h:
|
- nano.h:
|
||||||
- Reorder the toggle #defines to match their corresponding order
|
- Reorder the toggle #defines to match their corresponding order
|
||||||
in toggle_init(). (DLR)
|
in toggle_init(). (DLR)
|
||||||
|
- prompt.c:
|
||||||
|
get_prompt_string()
|
||||||
|
- Include the handling of the help key even when help is
|
||||||
|
disabled, so that we aren't erroneously kicked out of the
|
||||||
|
statusbar prompt under any circumstances. (DLR, found by Benno
|
||||||
|
Schulenberg)
|
||||||
- rcfile.c:
|
- rcfile.c:
|
||||||
parse_argument()
|
parse_argument()
|
||||||
- Rename variable ptr_bak to ptr_save, for consistency. (DLR)
|
- Rename variable ptr_bak to ptr_save, for consistency. (DLR)
|
||||||
|
|
10
src/prompt.c
10
src/prompt.c
|
@ -1050,17 +1050,17 @@ int get_prompt_string(bool allow_tabs,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif /* !NANO_TINY */
|
#endif /* !NANO_TINY */
|
||||||
#ifndef DISABLE_HELP
|
|
||||||
case NANO_HELP_KEY:
|
case NANO_HELP_KEY:
|
||||||
update_statusbar_line(answer, statusbar_x);
|
update_statusbar_line(answer, statusbar_x);
|
||||||
|
|
||||||
/* This key has a shortcut list entry when it's used to
|
/* This key has a shortcut list entry when it's used to
|
||||||
* to go to the help browser, which means that finished
|
* go to the help browser or display a message
|
||||||
* has been set to TRUE. Set it back to FALSE here, so
|
* indicating that help is disabled, which means that
|
||||||
* that we aren't kicked out of the statusbar prompt. */
|
* finished has been set to TRUE. Set it back to FALSE
|
||||||
|
* here, so that we aren't kicked out of the statusbar
|
||||||
|
* prompt. */
|
||||||
finished = FALSE;
|
finished = FALSE;
|
||||||
break;
|
break;
|
||||||
#endif /* !DISABLE_HELP */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we have a shortcut with an associated function, break out
|
/* If we have a shortcut with an associated function, break out
|
||||||
|
|
Loading…
Reference in New Issue