Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.
Browse files Browse the repository at this point in the history
liuchengxu committed Dec 28, 2024
1 parent 2fedd9c commit 6421c1d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions autoload/clap/picker.vim
Original file line number Diff line number Diff line change
@@ -73,11 +73,9 @@ function! clap#picker#update(update_info) abort

call clap#sign#ensure_exists()

if has_key(update_info, 'preview')
if has_key(update_info, 'preview') && update_info.preview isnot v:null
if !empty(update_info.preview)
call clap#picker#update_preview(update_info.preview)
elseif empty(g:clap.input.get())
call clap#preview#update_with_delay()
endif
else
call clap#preview#update_with_delay()

0 comments on commit 6421c1d

Please sign in to comment.