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