[vim/vim] Hidden visual after prop text when `set linebreak` (Issue #19898)

3 views
Skip to first unread message

A4-Tacks

unread,
2:47 AM (19 hours ago) 2:47 AM
to vim/vim, Subscribed
A4-Tacks created an issue (vim/vim#19898)

vim --version:

VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Mar 23 2026 19:02:24)
Included patches: 1-204

mini.vim:

set nocompatible nowrap linebreak
norm 30Ix
norm yyp
call prop_type_add("foo", {})
call prop_add(1, 5, #{text:"foo: ",type:"foo"})
call prop_add(2, 5, #{text:"bar: ",type:"foo"})

reproduction steps:

  1. Run vim -u mini.vim
  2. On line 1, move cursor to after "foo: "
  3. Input <c-v> j

Expected to highlight visual text, but actually did not
When set nolinebreak, the behavior meets expectations


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19898@github.com>

zeertzjq

unread,
3:25 AM (18 hours ago) 3:25 AM
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#19898)

This seems to affect unprintable characters (displayed as <xxxx> etc.) as well. With 'linebreak', only the first cell of unprintable characters at the end of a blockwise Visual selection is highlighted.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19898/4182298339@github.com>

zeertzjq

unread,
4:25 AM (17 hours ago) 4:25 AM
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#19898)

Ref: https://groups.google.com/g/vim_dev/c/FUjx06xTM60/


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19898/4182499965@github.com>

zeertzjq

unread,
4:32 AM (17 hours ago) 4:32 AM
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#19898)

There also seems to be another bug. When a blockwise Visual selection comes after 'linebreak', the characters changed by operators doesn't match the displayed Visual selection. Fixing that may be a bit more complicated.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19898/4182528403@github.com>

Christian Brabandt

unread,
10:45 AM (11 hours ago) 10:45 AM
to vim/vim, Subscribed

Closed #19898 as completed via 23be188.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19898/issue_event/24178779506@github.com>

Reply all
Reply to author
Forward
0 new messages