Skip to content

Commit

Permalink
Fix errors surfaces by vimlparser
Browse files Browse the repository at this point in the history
  • Loading branch information
natebosch committed Jan 21, 2018
1 parent 8e2c116 commit e7f2252
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.2.9+1

- Fix error in calling function message hooks.

# 0.2.9

- Add an argument to `lsc#edit#findCodeActions` to pass a callback to choose an
Expand Down
2 changes: 1 addition & 1 deletion autoload/lsc/config.vim
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function! lsc#config#messageHook(server, method, params) abort
if !has_key(hooks, a:method) | return a:params | endif
let hook = hooks[a:method]
if type(hook) == v:t_func
return s:RunHookFunction(hook a:method, a:params)
return s:RunHookFunction(hook, a:method, a:params)
elseif type(hook) == v:t_dict
return s:MergeHookDict(hook, a:method, a:params)
else
Expand Down
2 changes: 1 addition & 1 deletion test/diff_test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function! s:RunTest(test)
else
echom 'No errors in: '.a:test
endif
endfunction!
endfunction

function! s:RunTests(...)
for test in a:000
Expand Down
2 changes: 1 addition & 1 deletion test/uri_test.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function! s:RunTest(test)
else
echom 'No errors in: '.a:test
endif
endfunction!
endfunction

function! s:RunTests(...)
for test in a:000
Expand Down

0 comments on commit e7f2252

Please sign in to comment.