nano

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

commit 0f79a4233374b2ad2bd6bb8987843f78ff173c80
parent 3b79c7168e20f58de2d9c9fdec29492f52c54abc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  3 Dec 2018 09:54:30 +0100

browser: say "Close" instead of "Exit" for the ^X shortcut

When multiple buffers are open, the edit window says "Close" for ^X
instead of "Exit" (when one buffer is open).  In the help viewer ^X
says "Close".  Apparently the idea is that ^X should say "Exit" only
when pressing ^X leads to exiting from nano.  Pressing ^X in the file
browser does not exit from nano, so make it say "Close" instead.

(The help viewer says "Close" since version 2.8.6, commit 934a2192.)

Diffstat:
Msrc/global.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/global.c b/src/global.c @@ -711,7 +711,7 @@ void shortcut_init(void) #ifdef ENABLE_BROWSER add_to_funcs(do_exit, MBROWSER, - exit_tag, WITHORSANS(exitbrowser_gist), TOGETHER, VIEW); + close_tag, WITHORSANS(exitbrowser_gist), TOGETHER, VIEW); #endif add_to_funcs(do_writeout_void, MMAIN,