diff options
| author | Takumi Katase <50615605+devoc09@users.noreply.github.com> | 2026-09-27 20:39:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-27 07:39:50 -0400 |
| commit | 495c8d26fcea1446ad54271681c0cac8d578b108 (patch) | |
| tree | 552d850455f7d7b4f19ef2286c84ec5f1b18a3ab /runtime/lua/vim/provider/python.lua | |
| parent | 1e2110456eb72d28240346c6c71f44da6e9894f2 (diff) | |
| download | rneovim-495c8d26fcea1446ad54271681c0cac8d578b108.tar.gz rneovim-495c8d26fcea1446ad54271681c0cac8d578b108.tar.bz2 rneovim-495c8d26fcea1446ad54271681c0cac8d578b108.zip | |
vim-patch:9.2.1114: Visual selection is not highlighted at the cursor position #42105
vim-patch:9.2.1114: Visual selection is not highlighted at the cursor position
Problem: In a terminal the character under the cursor is normally not
shown as part of the visual selection.
Solution: Don't set "noinvcur" in win_line() (Shane Harper).
The problem did not occur in the GUI, only in a terminal.
The name "noinvcur" ("don't invert the cursor") was misleading: the
variable did not affect the cursor, but whether the character under the
cursor could be displayed as part of the visual selection.
The "noinvcur" handling may have been meant to help during a visual
selection when Visual is shown in reverse video and the terminal draws
the cursor by inverting the character under it, as otherwise the
character under the cursor would not look highlighted like the rest of
the selection. But Vim cannot know in general how a terminal draws the
cursor, and when either the cursor is not drawn by inverting the
character under it or Visual is not shown in reverse video, the handling
just left a character of the visual selection unhighlighted.
closes: vim/vim#21317
https://github.com/vim/vim/commit/d10aab4ba6602f8f2f2576d2d62ceb63869db6fb
Co-authored-by: Shane Harper <shane@shaneharper.net>
AI-assisted
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions