|
Karsten Hopp |
2af27d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
2af27d |
Subject: Patch 7.4.740
|
|
Karsten Hopp |
2af27d |
Fcc: outbox
|
|
Karsten Hopp |
2af27d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2af27d |
Mime-Version: 1.0
|
|
Karsten Hopp |
2af27d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
2af27d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2af27d |
------------
|
|
Karsten Hopp |
2af27d |
|
|
Karsten Hopp |
2af27d |
Patch 7.4.740
|
|
Karsten Hopp |
2af27d |
Problem: ":1quit" works like ":.quit". (Bohr Shaw)
|
|
Karsten Hopp |
2af27d |
Solution: Don't exit Vim when a range is specified. (Christian Brabandt)
|
|
Karsten Hopp |
2af27d |
Files: src/ex_docmd.c, src/testdir/test13.in, src/testdir/test13.ok
|
|
Karsten Hopp |
2af27d |
|
|
Karsten Hopp |
2af27d |
|
|
Karsten Hopp |
2af27d |
*** ../vim-7.4.739/src/ex_docmd.c 2015-06-09 21:33:24.819610622 +0200
|
|
Karsten Hopp |
2af27d |
--- src/ex_docmd.c 2015-06-19 12:42:52.716296921 +0200
|
|
Karsten Hopp |
2af27d |
***************
|
|
Karsten Hopp |
2af27d |
*** 7092,7098 ****
|
|
Karsten Hopp |
2af27d |
else
|
|
Karsten Hopp |
2af27d |
{
|
|
Karsten Hopp |
2af27d |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
2af27d |
! if (only_one_window()) /* quit last window */
|
|
Karsten Hopp |
2af27d |
#endif
|
|
Karsten Hopp |
2af27d |
getout(0);
|
|
Karsten Hopp |
2af27d |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
2af27d |
--- 7092,7105 ----
|
|
Karsten Hopp |
2af27d |
else
|
|
Karsten Hopp |
2af27d |
{
|
|
Karsten Hopp |
2af27d |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
2af27d |
! /* quit last window
|
|
Karsten Hopp |
2af27d |
! * Note: only_one_window() returns true, even so a help window is
|
|
Karsten Hopp |
2af27d |
! * still open. In that case only quit, if no address has been
|
|
Karsten Hopp |
2af27d |
! * specified. Example:
|
|
Karsten Hopp |
2af27d |
! * :h|wincmd w|1q - don't quit
|
|
Karsten Hopp |
2af27d |
! * :h|wincmd w|q - quit
|
|
Karsten Hopp |
2af27d |
! */
|
|
Karsten Hopp |
2af27d |
! if (only_one_window() && (firstwin == lastwin || eap->addr_count == 0))
|
|
Karsten Hopp |
2af27d |
#endif
|
|
Karsten Hopp |
2af27d |
getout(0);
|
|
Karsten Hopp |
2af27d |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
2af27d |
*** ../vim-7.4.739/src/testdir/test13.in 2012-11-15 22:29:40.000000000 +0100
|
|
Karsten Hopp |
2af27d |
--- src/testdir/test13.in 2015-06-19 12:12:26.667433364 +0200
|
|
Karsten Hopp |
2af27d |
***************
|
|
Karsten Hopp |
2af27d |
*** 48,53 ****
|
|
Karsten Hopp |
2af27d |
--- 48,59 ----
|
|
Karsten Hopp |
2af27d |
:au BufWipeout Xtestje1 buf Xtestje1
|
|
Karsten Hopp |
2af27d |
:bwipe
|
|
Karsten Hopp |
2af27d |
:w >>test.out
|
|
Karsten Hopp |
2af27d |
+ :only
|
|
Karsten Hopp |
2af27d |
+ :help
|
|
Karsten Hopp |
2af27d |
+ :wincmd w
|
|
Karsten Hopp |
2af27d |
+ :1quit
|
|
Karsten Hopp |
2af27d |
+ :$put ='Final line'
|
|
Karsten Hopp |
2af27d |
+ :$w >>test.out
|
|
Karsten Hopp |
2af27d |
:qa!
|
|
Karsten Hopp |
2af27d |
ENDTEST
|
|
Karsten Hopp |
2af27d |
|
|
Karsten Hopp |
2af27d |
*** ../vim-7.4.739/src/testdir/test13.ok 2010-05-15 13:04:10.000000000 +0200
|
|
Karsten Hopp |
2af27d |
--- src/testdir/test13.ok 2015-06-19 12:12:26.667433364 +0200
|
|
Karsten Hopp |
2af27d |
***************
|
|
Karsten Hopp |
2af27d |
*** 28,30 ****
|
|
Karsten Hopp |
2af27d |
--- 28,31 ----
|
|
Karsten Hopp |
2af27d |
contents
|
|
Karsten Hopp |
2af27d |
contents
|
|
Karsten Hopp |
2af27d |
end of testfile
|
|
Karsten Hopp |
2af27d |
+ Final line
|
|
Karsten Hopp |
2af27d |
*** ../vim-7.4.739/src/version.c 2015-06-19 12:08:08.230151195 +0200
|
|
Karsten Hopp |
2af27d |
--- src/version.c 2015-06-19 12:12:14.327563119 +0200
|
|
Karsten Hopp |
2af27d |
***************
|
|
Karsten Hopp |
2af27d |
*** 743,744 ****
|
|
Karsten Hopp |
2af27d |
--- 743,746 ----
|
|
Karsten Hopp |
2af27d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2af27d |
+ /**/
|
|
Karsten Hopp |
2af27d |
+ 740,
|
|
Karsten Hopp |
2af27d |
/**/
|
|
Karsten Hopp |
2af27d |
|
|
Karsten Hopp |
2af27d |
--
|
|
Karsten Hopp |
2af27d |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
2af27d |
115. You are late picking up your kid from school and try to explain
|
|
Karsten Hopp |
2af27d |
to the teacher you were stuck in Web traffic.
|
|
Karsten Hopp |
2af27d |
|
|
Karsten Hopp |
2af27d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2af27d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2af27d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
2af27d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|