mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
vim-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) https://code.google.com/p/vim/source/detail?name=v7-4-588
This commit is contained in:
@@ -105,7 +105,7 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
command='argedit',
|
command='argedit',
|
||||||
flags=bit.bor(BANG, NEEDARG, RANGE, NOTADR, FILE1, EDITCMD, ARGOPT, TRLBAR),
|
flags=bit.bor(BANG, NEEDARG, RANGE, NOTADR, ZEROR, FILE1, EDITCMD, ARGOPT, TRLBAR),
|
||||||
addr_type=ADDR_ARGUMENTS,
|
addr_type=ADDR_ARGUMENTS,
|
||||||
func='ex_argedit',
|
func='ex_argedit',
|
||||||
},
|
},
|
||||||
|
@@ -32,7 +32,8 @@ SCRIPTS := test_autoformat_join.out \
|
|||||||
test_breakindent.out \
|
test_breakindent.out \
|
||||||
test_argument_count.out \
|
test_argument_count.out \
|
||||||
test_close_count.out \
|
test_close_count.out \
|
||||||
test_command_count.out
|
test_command_count.out \
|
||||||
|
test_argument_0count.out
|
||||||
|
|
||||||
SCRIPTS_GUI := test16.out
|
SCRIPTS_GUI := test16.out
|
||||||
|
|
||||||
|
28
src/nvim/testdir/test_argument_0count.in
Normal file
28
src/nvim/testdir/test_argument_0count.in
Normal file
@@ -0,0 +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
|
||||||
|
|
||||||
|
|
5
src/nvim/testdir/test_argument_0count.ok
Normal file
5
src/nvim/testdir/test_argument_0count.ok
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
added a b c d
|
||||||
|
added a third b c d
|
||||||
|
edited a b c d
|
||||||
|
edited a third b c d
|
||||||
|
|
@@ -191,7 +191,7 @@ static int included_patches[] = {
|
|||||||
//591 NA
|
//591 NA
|
||||||
//590,
|
//590,
|
||||||
//589 NA
|
//589 NA
|
||||||
//588,
|
588,
|
||||||
//587,
|
//587,
|
||||||
//586 NA
|
//586 NA
|
||||||
585,
|
585,
|
||||||
|
Reference in New Issue
Block a user