Skip to content

Commit

Permalink
files: try previewing if input is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Dec 28, 2024
1 parent ed45fe4 commit 2fedd9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/clap/picker.vim
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ function! clap#picker#update(update_info) abort
if has_key(update_info, 'preview')
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()
Expand Down

0 comments on commit 2fedd9c

Please sign in to comment.