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:
Benno Schulenberg 2025-05-05 12:45:49 +02:00
parent a942be9f6f
commit fb78eea6fc

View File

@ -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);