Skip to content

Commit

Permalink
fix: full screen image preview
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed May 18, 2024
1 parent f5170a3 commit e24e890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ return {

local function get_image_at_cursor(buf)
local images = image.get_images { buffer = buf }
local row = vim.api.nvim_win_get_cursor(0)[1]
local row = vim.api.nvim_win_get_cursor(0)[1] - 1
for _, img in ipairs(images) do
if img.geometry ~= nil and img.geometry.y == row then
local og_max_height = img.global_state.options.max_height_window_percentage
Expand Down

0 comments on commit e24e890

Please sign in to comment.