Skip to content

Commit

Permalink
Update to check session validity in document#open #135
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Sep 19, 2019
1 parent 290e77b commit 730f6b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/iced/nrepl/document.vim
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ function! s:view_doc_on_popup(resp) abort
endfunction

function! iced#nrepl#document#open(symbol) abort
if !iced#nrepl#check_session_validity() | return | endif
call iced#nrepl#ns#in({_ ->
\ iced#nrepl#var#get(a:symbol, funcref('s:view_doc_on_buffer'))
\ })
Expand All @@ -150,6 +151,7 @@ function! iced#nrepl#document#popup_open(symbol) abort
return iced#nrepl#document#open(a:symbol)
endif

if !iced#nrepl#check_session_validity() | return | endif
call iced#nrepl#ns#in({_ ->
\ iced#nrepl#var#get(a:symbol, funcref('s:view_doc_on_popup'))
\ })
Expand Down

0 comments on commit 730f6b5

Please sign in to comment.