bindings: make ^Q and ^S do something useful by default

^S will be the first thing people will try for saving a file,
and ^Q is somewhat mnemonic because it is to the left of ^W:
it searches backward.

Make these keystrokes available also in the tiny version.
This commit is contained in:
Benno Schulenberg
2017-09-24 20:49:35 +02:00
parent c7eecd74de
commit ba65cd48cc
5 changed files with 4 additions and 23 deletions

View File

@@ -2272,14 +2272,12 @@ void do_writeout_void(void)
close_and_go();
}
#ifndef NANO_TINY
/* If it has a name, write the current file to disk without prompting. */
void do_savefile(void)
{
if (do_writeout(FALSE, FALSE) == 2)
close_and_go();
}
#endif
/* Return a malloc()ed string containing the actual directory, used to
* convert ~user/ and ~/ notation. */