summaryrefslogtreecommitdiff
path: root/app-vim/tlib/files/tlib-1.27-fix-error-E1208-vim-8.2.3141.patch
blob: d52314fd69871f188062a0b5bf64db3928ab2212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
https://github.com/tomtom/tlib_vim/commit/b5f9f6c83ade9b5640580bf9792a332dd453dfd0
https://bugs.gentoo.org/828429

From: Laurent Stacul <laurent.stacul@gmail.com>
Date: Mon, 12 Jul 2021 15:51:16 +0200
Subject: [PATCH] Fix error E1208 raised by vim >=8.2.3141

Starting vim 8.2.3141 with the tlib_vim plugin will raised the following
error message at startup:

  Error detected while processing .vim/pack/stac/start/tlib_vim/plugin/02tlib.vim:
  line   77: E1208: -complete used without -nargsPress ENTER or type command to continue

The reason is the following change in vim:

  https://github.com/vim/vim/commit/de69a7353e9bec552e15dbe3706a9f4e88080fce

Which forbid the com[mand] command with -nargs=0 and -complete options.
--- a/plugin/02tlib.vim
+++ b/plugin/02tlib.vim
@@ -74,7 +74,7 @@ command! -nargs=1 -complete=command TBrowseOutput call tlib#cmd#BrowseOutput(<q-
 "
 " EXAMPLES: >
 "   TBrowseScriptnames 
-command! -nargs=0 -complete=command TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
+command! -nargs=0 TBrowseScriptnames call tlib#cmd#TBrowseScriptnames()
 
 
 " :display: :Texecqfl CMD