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