astepano / rpms / vim

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