nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d9ac785a07fe3758e51ec343a7063020f97fb5db
parent 01457ae3d3194698300b2e28c65a7f20f318631d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 27 Feb 2018 13:18:21 +0100

input: handle the implant() function separately also for the prompt

To prevent getting kicked out of it.

This fixes https://savannah.gnu.org/bugs/?53234.

Diffstat:
Msrc/prompt.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -152,6 +152,10 @@ int do_statusbar_input(bool *finished) shortcut->func == do_delete || shortcut->func == do_backspace)) ; +#ifdef ENABLE_NANORC + else if (shortcut->func == implant) + execute(shortcut); +#endif else if (shortcut->func == do_verbatim_input) do_statusbar_verbatim_input(); else if (shortcut->func == do_cut_text_void)