We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 922f81b commit e2e9d95Copy full SHA for e2e9d95
indent/vimspec.vim
@@ -10,19 +10,19 @@ runtime! indent/vim.vim
10
11
let b:did_indent = 1
12
13
-setlocal indentexpr=GetVimspecIndent()
+let &l:indentexpr = 'GetVimspecIndent(' . string(&l:indentexpr) . ')'
14
setlocal indentkeys+==End
15
16
if exists('*GetVimspecIndent')
17
finish
18
endif
19
20
-function GetVimspecIndent() abort
+function GetVimspecIndent(orig_indentexpr) abort
21
try
22
" Old Vim's indent plugin has a bug that uses =~
23
let ignorecase_save = &ignorecase
24
set noignorecase
25
- let indent = GetVimIndent()
+ let indent = eval(a:orig_indentexpr)
26
finally
27
let &ignorecase = ignorecase_save
28
endtry
0 commit comments