Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero-width textprops do not respect start-/end_incl #5679

Closed
axelf4 opened this issue Feb 22, 2020 · 0 comments
Closed

Zero-width textprops do not respect start-/end_incl #5679

axelf4 opened this issue Feb 22, 2020 · 0 comments

Comments

@axelf4
Copy link

axelf4 commented Feb 22, 2020

For text properties of zero width with start_incl and end_incl set to TRUE, insertions at the position of the textprop do not increase the size of the textprop, which is contrary to what one would expect reading the documentation on start-/end_incl:

"start_incl"    when TRUE inserts at the start position will be
                included in the text property
"end_incl"      when TRUE inserts at the end position will be
                in the text property

To reproduce:

  1. Run vim --clean
  2. Create text property of length zero with both start_incl and end_incl set to TRUE
  3. Insert text at the start position of the created textprop
  4. The length of the textprop stays constant?

Would expect the length to increase with each inserted character, like what happens in the case that the length of the textprop is not zero.

Environment:

  • Vim version: 8.2.251
  • OS: Ubuntu 18.04
  • Terminal: tmux in Alacritty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant