aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2025-03-17 00:18:27 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-03-18 09:39:19 +0100
commitd40481322a7959d36804cb4f438d8756fb8171a0 (patch)
tree60e2bbe5d0be20bcc39aeadff301d9d236d24fb8 /runtime/lua/vim/_editor.lua
parent1369d86812a55d2a1a575299e05e75ea4a6a8461 (diff)
downloadrneovim-d40481322a7959d36804cb4f438d8756fb8171a0.tar.gz
rneovim-d40481322a7959d36804cb4f438d8756fb8171a0.tar.bz2
rneovim-d40481322a7959d36804cb4f438d8756fb8171a0.zip
fix(lua): ensure inspect_pos() only shows visible highlight extmarks
Problem: Unpaired marks are shown with `filter.extmarks == true`, which should only return visible highlights. Misleading `end_col` included in `inspect_pos()` for unpaired mark; it is set to `start_col + 1` which would be a visible highlight, which it is not. Custom "is_here" filter used to get extmarks overlapping a position. Solution: Exclude unpaired highlight extmarks with `filter.extmarks == true`. Set `end_col` to `start_col` for an unpaired mark. Supply appropriate arguments to nvim_buf_get_extmarks() to return overlapping extmarks; exclude marks whose end is at `{row, col}` with `filter.extmarks == true`.
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions