Skip to content

Commit

Permalink
Fix menu for showMessageRequest (#393)
Browse files Browse the repository at this point in the history
Fixes #390
  • Loading branch information
natebosch authored Feb 4, 2021
1 parent 53530bf commit 25d625a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsc/message.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ endfunction

function! lsc#message#showRequest(message, actions) abort
let l:options = [a:message]
for l:index in range(a:actions)
for l:index in range(len(a:actions))
let l:title = get(a:actions, l:index)['title']
call add(l:options, (l:index + 1) . ' - ' . l:title)
endfor
Expand Down

0 comments on commit 25d625a

Please sign in to comment.