snacks.nvim/lua
Tod Morrison c552cea131
fix(image): correct render fallback to handle "editor" relative position (#2296)
In PR 1560, @phanen reported an additional case that was not handled by
that fix when the style is set to `relative = "editor"`. This new patch
adds a check to handle that case.

## Description ##

This patch adds a check for `Snacks.config.styles.snacks_image.relative
~= "editor"` to the conditional in render_fallback that handles the
off-by-one error. The previous patch fixed the relative = "cursor" case,
but introduced a regression in the relative = "editor" case.
2025-10-21 07:01:50 +02:00
..
snacks fix(image): correct render fallback to handle "editor" relative position (#2296) 2025-10-21 07:01:50 +02:00
trouble/sources Revert "feat: test" 2025-02-14 22:13:38 +01:00