| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.740 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.4.740 |
| Problem: ":1quit" works like ":.quit". (Bohr Shaw) |
| Solution: Don't exit Vim when a range is specified. (Christian Brabandt) |
| Files: src/ex_docmd.c, src/testdir/test13.in, src/testdir/test13.ok |
| |
| |
| |
| |
| |
| *** 7092,7098 **** |
| else |
| { |
| #ifdef FEAT_WINDOWS |
| ! if (only_one_window()) /* quit last window */ |
| #endif |
| getout(0); |
| #ifdef FEAT_WINDOWS |
| --- 7092,7105 ---- |
| else |
| { |
| #ifdef FEAT_WINDOWS |
| ! /* 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 |
| |
| |
| |
| *** 48,53 **** |
| --- 48,59 ---- |
| :au BufWipeout Xtestje1 buf Xtestje1 |
| :bwipe |
| :w >>test.out |
| + :only |
| + :help |
| + :wincmd w |
| + :1quit |
| + :$put ='Final line' |
| + :$w >>test.out |
| :qa! |
| ENDTEST |
| |
| |
| |
| |
| *** 28,30 **** |
| --- 28,31 ---- |
| contents |
| contents |
| end of testfile |
| + Final line |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 740, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 115. You are late picking up your kid from school and try to explain |
| to the teacher you were stuck in Web traffic. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |