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