073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.588
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.588
073263
Problem:    ":0argedit foo" puts the new argument in the second place instead
073263
	    of the first.
073263
Solution:   Adjust the range type. (Ingo Karkat)
073263
Files:	    src/ex_cmds.h, src/testdir/Make_amiga.mak,
073263
	    src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
073263
	    src/testdir/Make_os2.mak, src/testdir/Make_vms.mms,
073263
	    src/testdir/Makefile, src/testdir/test_argument_0count.in,
073263
	    src/testdir/test_argument_0count.ok
073263
073263
073263
*** ../vim-7.4.587/src/ex_cmds.h	2015-01-20 13:29:46.397315064 +0100
073263
--- src/ex_cmds.h	2015-01-20 19:23:58.901739397 +0100
073263
***************
073263
*** 136,142 ****
073263
  			BANG|NEEDARG|EXTRA|NOTRLCOM|RANGE|NOTADR|DFLALL,
073263
  			ADDR_ARGUMENTS),
073263
  EX(CMD_argedit,		"argedit",	ex_argedit,
073263
! 			BANG|NEEDARG|RANGE|NOTADR|FILE1|EDITCMD|ARGOPT|TRLBAR,
073263
  			ADDR_ARGUMENTS),
073263
  EX(CMD_argglobal,	"argglobal",	ex_args,
073263
  			BANG|FILES|EDITCMD|ARGOPT|TRLBAR,
073263
--- 136,142 ----
073263
  			BANG|NEEDARG|EXTRA|NOTRLCOM|RANGE|NOTADR|DFLALL,
073263
  			ADDR_ARGUMENTS),
073263
  EX(CMD_argedit,		"argedit",	ex_argedit,
073263
! 			BANG|NEEDARG|RANGE|NOTADR|ZEROR|FILE1|EDITCMD|ARGOPT|TRLBAR,
073263
  			ADDR_ARGUMENTS),
073263
  EX(CMD_argglobal,	"argglobal",	ex_args,
073263
  			BANG|FILES|EDITCMD|ARGOPT|TRLBAR,
073263
*** ../vim-7.4.587/src/testdir/Make_amiga.mak	2014-12-13 21:00:52.059036480 +0100
073263
--- src/testdir/Make_amiga.mak	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 36,41 ****
073263
--- 36,42 ----
073263
  		test94.out test95.out test96.out test97.out test98.out \
073263
  		test99.out test100.out test101.out test102.out test103.out \
073263
  		test104.out test105.out test106.out test107.out \
073263
+ 		test_argument_0count.out \
073263
  		test_argument_count.out \
073263
  		test_autoformat_join.out \
073263
  		test_breakindent.out \
073263
***************
073263
*** 175,180 ****
073263
--- 176,182 ----
073263
  test105.out: test105.in
073263
  test106.out: test106.in
073263
  test107.out: test107.in
073263
+ test_argument_0count.out: test_argument_0count.in
073263
  test_argument_count.out: test_argument_count.in
073263
  test_autoformat_join.out: test_autoformat_join.in
073263
  test_breakindent.out: test_breakindent.in
073263
*** ../vim-7.4.587/src/testdir/Make_dos.mak	2014-12-13 21:00:52.059036480 +0100
073263
--- src/testdir/Make_dos.mak	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 35,40 ****
073263
--- 35,41 ----
073263
  		test94.out test95.out test96.out test98.out test99.out \
073263
  		test100.out test101.out test102.out test103.out test104.out \
073263
  		test105.out test106.out  test107.out\
073263
+ 		test_argument_0count.out \
073263
  		test_argument_count.out \
073263
  		test_autoformat_join.out \
073263
  		test_breakindent.out \
073263
*** ../vim-7.4.587/src/testdir/Make_ming.mak	2014-12-13 21:00:52.059036480 +0100
073263
--- src/testdir/Make_ming.mak	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 57,62 ****
073263
--- 57,63 ----
073263
  		test94.out test95.out test96.out test98.out test99.out \
073263
  		test100.out test101.out test102.out test103.out test104.out \
073263
  		test105.out test106.out test107.out \
073263
+ 		test_argument_0count.out \
073263
  		test_argument_count.out \
073263
  		test_autoformat_join.out \
073263
  		test_breakindent.out \
073263
*** ../vim-7.4.587/src/testdir/Make_os2.mak	2014-12-13 21:00:52.059036480 +0100
073263
--- src/testdir/Make_os2.mak	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 37,42 ****
073263
--- 37,43 ----
073263
  		test94.out test95.out test96.out test98.out test99.out \
073263
  		test100.out test101.out test102.out test103.out test104.out \
073263
  		test105.out test106.out test107.out \
073263
+ 		test_argument_0count.out \
073263
  		test_argument_count.out \
073263
  		test_autoformat_join.out \
073263
  		test_breakindent.out \
073263
*** ../vim-7.4.587/src/testdir/Make_vms.mms	2014-12-13 21:00:52.059036480 +0100
073263
--- src/testdir/Make_vms.mms	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 96,101 ****
073263
--- 96,102 ----
073263
  	 test95.out test96.out test98.out test99.out \
073263
  	 test100.out test101.out test103.out test104.out \
073263
  	 test105.out test106.out test107.out \
073263
+ 	 test_argument_0count.out \
073263
  	 test_argument_count.out \
073263
  	 test_autoformat_join.out \
073263
  	 test_breakindent.out \
073263
*** ../vim-7.4.587/src/testdir/Makefile	2014-12-13 21:00:52.059036480 +0100
073263
--- src/testdir/Makefile	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 33,38 ****
073263
--- 33,39 ----
073263
  		test94.out test95.out test96.out test97.out test98.out \
073263
  		test99.out test100.out test101.out test102.out test103.out \
073263
  		test104.out test105.out test106.out test107.out \
073263
+ 		test_argument_0count.out \
073263
  		test_argument_count.out \
073263
  		test_autoformat_join.out \
073263
  		test_breakindent.out \
073263
*** ../vim-7.4.587/src/testdir/test_argument_0count.in	2015-01-20 19:30:28.969469550 +0100
073263
--- src/testdir/test_argument_0count.in	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 0 ****
073263
--- 1,28 ----
073263
+ Tests for :0argadd and :0argedit     vim: set ft=vim :
073263
+ 
073263
+ STARTTEST
073263
+ :so small.vim
073263
+ :let arglists = []
073263
+ :%argd
073263
+ :arga a b c d
073263
+ :2argu
073263
+ :0arga added
073263
+ :call add(arglists, argv())
073263
+ :2argu
073263
+ :arga third
073263
+ :call add(arglists, argv())
073263
+ :%argd
073263
+ :arga a b c d
073263
+ :2argu
073263
+ :0arge edited
073263
+ :call add(arglists, argv())
073263
+ :2argu
073263
+ :arga third
073263
+ :call add(arglists, argv())
073263
+ :e! test.out
073263
+ :call append(0, map(copy(arglists), 'join(v:val, " ")'))
073263
+ :w
073263
+ :qa!
073263
+ ENDTEST
073263
+ 
073263
+ 
073263
*** ../vim-7.4.587/src/testdir/test_argument_0count.ok	2015-01-20 19:30:28.973469506 +0100
073263
--- src/testdir/test_argument_0count.ok	2015-01-20 19:22:46.050535656 +0100
073263
***************
073263
*** 0 ****
073263
--- 1,5 ----
073263
+ added a b c d
073263
+ added a third b c d
073263
+ edited a b c d
073263
+ edited a third b c d
073263
+ 
073263
*** ../vim-7.4.587/src/version.c	2015-01-20 19:01:32.384444246 +0100
073263
--- src/version.c	2015-01-20 19:21:15.335527208 +0100
073263
***************
073263
*** 743,744 ****
073263
--- 743,746 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     588,
073263
  /**/
073263
073263
-- 
073263
hundred-and-one symptoms of being an internet addict:
073263
94. Now admit it... How many of you have made "modem noises" into
073263
    the phone just to see if it was possible? :-)
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///