mcauley-penney / visual-whitespace.nvim

Imitate VSCode's "Render Whitespace" feature in visual mode
100 stars 2 forks source link

[bug]: with `virtualedit=all`, starting visual selection after end of line highlights eol char #21

Open mcauley-penney opened 3 hours ago

mcauley-penney commented 3 hours ago

In the below image, the visual selection starts in the nonexistent col 3 of line 6. This highlights the eol character in col 1 of line 6.

image

mcauley-penney commented 2 hours ago

This happens when

  1. we scroll down from the nonexistent position, or

image

  1. when we scroll up and land in a nonexistent position

image

image