Skip to content

Commit

Permalink
Ignore RPC errors on update_map()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 15, 2020
1 parent ef375ff commit 15f05df
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions autoload/denite.vim
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ endfunction
function! denite#_update_map(name, bufnr, is_async) abort
let is_filter = &l:filetype ==# 'denite-filter'

call denite#util#rpcrequest(
\ (a:is_async ? '_denite_do_async_map' : '_denite_do_map'),
\ [a:bufnr, a:name, []], a:is_async)
try
call denite#util#rpcrequest(
\ (a:is_async ? '_denite_do_async_map' : '_denite_do_map'),
\ [a:bufnr, a:name, []], a:is_async)
catch
" Ignore RPC errors
endtry

if is_filter
call s:update_filter()
Expand Down

0 comments on commit 15f05df

Please sign in to comment.