mirror of
https://https.git.savannah.gnu.org/git/nano.git
synced 2026-01-26 16:09:15 +00:00
bindings: always bind ^Q in the WriteOut menu, not only for --saveonexit
This gives the user a keystroke combo (for abandonning a buffer) that is always the same, no matter whether the buffer is modified or not: ^O^Q.
This commit is contained in:
parent
a942be9f6f
commit
fb78eea6fc
@ -1515,7 +1515,7 @@ void shortcut_init(void)
|
||||
add_to_sclist(MBROWSER, "M-G", 0, goto_dir, 0);
|
||||
add_to_sclist(MBROWSER, "^_", 0, goto_dir, 0);
|
||||
#endif
|
||||
if (ISSET(SAVE_ON_EXIT) && !ISSET(PRESERVE))
|
||||
if (!ISSET(PRESERVE))
|
||||
add_to_sclist(MWRITEFILE, "^Q", 0, discard_buffer, 0);
|
||||
#ifndef NANO_TINY
|
||||
add_to_sclist(MWRITEFILE, "M-D", 0, dos_format, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user