Skip to content

Commit

Permalink
fix: get_images api #111
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Jan 4, 2024
1 parent 8e5b0b5 commit 2090055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/image/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ api.get_images = function(opts)
if (namespace and current_image.namespace == namespace) or not namespace then
if
(opts and opts.window and opts.window == current_image.window and not opts.buffer)
or (opts and opts.buffer and opts.buffer == current_image.buffer)
or (opts and opts.buffer and opts.buffer == current_image.buffer and not opts.window)
or (opts and opts.window and opts.buffer and opts.window == current_image.window and opts.buffer == current_image.buffer)
or not opts
then
table.insert(images, current_image)
Expand Down

0 comments on commit 2090055

Please sign in to comment.