Skip to content

Commit

Permalink
Check command line window
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Mar 29, 2022
1 parent bcb3d93 commit ae98794
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/ddu.vim
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ function! ddu#_request(method, args) abort
return {}
endif

if bufname('%') ==# '[Command Line]'
call ddu#util#print_error(
\ 'You cannot execute ddu.vim from command line window')
return {}
endif

if denops#plugin#wait('ddu')
return {}
endif
Expand Down

0 comments on commit ae98794

Please sign in to comment.