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

Text property "override" flag does nothing for virtual text #10915

Closed
puremourning opened this issue Aug 13, 2022 · 0 comments
Closed

Text property "override" flag does nothing for virtual text #10915

puremourning opened this issue Aug 13, 2022 · 0 comments
Labels

Comments

@puremourning
Copy link
Contributor

Steps to reproduce

vim9script

prop_type_add( 'prop', { highlight: 'Nontext', override: true } )
prop_add( 1, 2, { type: 'prop', text: ' inserted ' } )
  • vim --clean -S test.vim test.vim
  • go to line 1
  • V - visual line mode
  • see that the visual highlight is not overridden by the text property

Expected behaviour

I'm not sure if this is really desirable or not, but the docs suggest that cursor line and visual highlighting are overridden when override is TRUE

Version of Vim

9.0.199

Environment

macOS arm64

Logs and stack traces

No response

jamespeapen pushed a commit to jamespeapen/vim that referenced this issue Sep 21, 2022
Problem:    The override flag has no effect for virtual text. (Ben Jackson)
Solution:   Make the override flag work. (closes vim#10915)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant