1
0
forked from aniani/vim

patch 7.4.740

Problem:    ":1quit" works like ":.quit". (Bohr Shaw)
Solution:   Don't exit Vim when a range is specified. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2015-06-19 12:43:07 +02:00
parent acc39888cd
commit c7a0d32c83
4 changed files with 17 additions and 1 deletions

View File

@@ -7092,7 +7092,14 @@ ex_quit(eap)
else
{
#ifdef FEAT_WINDOWS
if (only_one_window()) /* quit last window */
/* quit last window
* Note: only_one_window() returns true, even so a help window is
* still open. In that case only quit, if no address has been
* specified. Example:
* :h|wincmd w|1q - don't quit
* :h|wincmd w|q - quit
*/
if (only_one_window() && (firstwin == lastwin || eap->addr_count == 0))
#endif
getout(0);
#ifdef FEAT_WINDOWS