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.)
master
Benno Schulenberg 2018-12-03 09:54:30 +01:00
parent 3b79c7168e
commit 0f79a42333
1 changed files with 1 additions and 1 deletions

View File

@ -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,