]> git.pld-linux.org Git - packages/vim-plugin-coc.git/blame - 3211.patch
upstream fix for "E1208: -complete used without allowing arguments"; rel 2
[packages/vim-plugin-coc.git] / 3211.patch
CommitLineData
87427a03
JP
1From ed1e2cb3fc69ca028993a75fe68c3f237961ed2b Mon Sep 17 00:00:00 2001
2From: Julian Grinblat <julian@dotcore.co.il>
3Date: Mon, 12 Jul 2021 18:47:08 +0900
4Subject: [PATCH 1/3] Fix command with complete but no nargs
5
6---
7 plugin/coc.vim | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/plugin/coc.vim b/plugin/coc.vim
11index 010406096d..7541d3f84d 100644
12--- a/plugin/coc.vim
13+++ b/plugin/coc.vim
14@@ -481,7 +481,7 @@ command! -nargs=+ -complete=custom,s:ExtensionList CocUninstall :call CocAction
15 command! -nargs=* -complete=custom,s:CommandList -range CocCommand :call coc#rpc#notify('runCommand', [<f-args>])
16 command! -nargs=* -complete=custom,coc#list#options CocList :call coc#rpc#notify('openList', [<f-args>])
17 command! -nargs=? -complete=custom,coc#list#names CocListResume :call coc#rpc#notify('listResume', [<f-args>])
18-command! -nargs=0 -complete=custom,coc#list#names CocListCancel :call coc#rpc#notify('listCancel', [])
19+command! -nargs=0 CocListCancel :call coc#rpc#notify('listCancel', [])
20 command! -nargs=? -complete=custom,coc#list#names CocPrev :call coc#rpc#notify('listPrev', [<f-args>])
21 command! -nargs=? -complete=custom,coc#list#names CocNext :call coc#rpc#notify('listNext', [<f-args>])
22 command! -nargs=? -complete=custom,coc#list#names CocFirst :call coc#rpc#notify('listFirst', [<f-args>])
23
24From 7ebea9e4f33f9d40347ef2e3440a2b1e25f9b3a3 Mon Sep 17 00:00:00 2001
25From: Julian Grinblat <julian@dotcore.co.il>
26Date: Mon, 12 Jul 2021 20:29:15 +0900
27Subject: [PATCH 2/3] Fix
28
29---
30 plugin/coc.vim | 2 +-
31 1 file changed, 1 insertion(+), 1 deletion(-)
32
33diff --git a/plugin/coc.vim b/plugin/coc.vim
34index 7541d3f84d..e817f945b1 100644
35--- a/plugin/coc.vim
36+++ b/plugin/coc.vim
37@@ -481,7 +481,7 @@ command! -nargs=+ -complete=custom,s:ExtensionList CocUninstall :call CocAction
38 command! -nargs=* -complete=custom,s:CommandList -range CocCommand :call coc#rpc#notify('runCommand', [<f-args>])
39 command! -nargs=* -complete=custom,coc#list#options CocList :call coc#rpc#notify('openList', [<f-args>])
40 command! -nargs=? -complete=custom,coc#list#names CocListResume :call coc#rpc#notify('listResume', [<f-args>])
41-command! -nargs=0 CocListCancel :call coc#rpc#notify('listCancel', [])
42+command! -nargs=? CocListCancel :call coc#rpc#notify('listCancel', [])
43 command! -nargs=? -complete=custom,coc#list#names CocPrev :call coc#rpc#notify('listPrev', [<f-args>])
44 command! -nargs=? -complete=custom,coc#list#names CocNext :call coc#rpc#notify('listNext', [<f-args>])
45 command! -nargs=? -complete=custom,coc#list#names CocFirst :call coc#rpc#notify('listFirst', [<f-args>])
46
47From c1040a75e5f6feffb48904da416e5ba077d2e8b7 Mon Sep 17 00:00:00 2001
48From: Julian Grinblat <julian@dotcore.co.il>
49Date: Mon, 12 Jul 2021 21:09:18 +0900
50Subject: [PATCH 3/3] Final fix
51
52---
53 plugin/coc.vim | 2 +-
54 1 file changed, 1 insertion(+), 1 deletion(-)
55
56diff --git a/plugin/coc.vim b/plugin/coc.vim
57index e817f945b1..80c2a8d6b8 100644
58--- a/plugin/coc.vim
59+++ b/plugin/coc.vim
60@@ -481,7 +481,7 @@ command! -nargs=+ -complete=custom,s:ExtensionList CocUninstall :call CocAction
61 command! -nargs=* -complete=custom,s:CommandList -range CocCommand :call coc#rpc#notify('runCommand', [<f-args>])
62 command! -nargs=* -complete=custom,coc#list#options CocList :call coc#rpc#notify('openList', [<f-args>])
63 command! -nargs=? -complete=custom,coc#list#names CocListResume :call coc#rpc#notify('listResume', [<f-args>])
64-command! -nargs=? CocListCancel :call coc#rpc#notify('listCancel', [])
65+command! -nargs=? -complete=custom,coc#list#names CocListCancel :call coc#rpc#notify('listCancel', [])
66 command! -nargs=? -complete=custom,coc#list#names CocPrev :call coc#rpc#notify('listPrev', [<f-args>])
67 command! -nargs=? -complete=custom,coc#list#names CocNext :call coc#rpc#notify('listNext', [<f-args>])
68 command! -nargs=? -complete=custom,coc#list#names CocFirst :call coc#rpc#notify('listFirst', [<f-args>])
This page took 0.083939 seconds and 4 git commands to generate.