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

feat(extmark): option to specify -1 for end_col in nvim_buf_set_extmark #28169

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

NStefan002
Copy link

As mentioned in #27469, there is an inconsistency between extmarks/highlights regarding the end_col option. Now the end_col option in the nvim_buf_set_extmark function can be set to -1 - meaning to the end of the line.

Closes #27469.

@NStefan002 NStefan002 marked this pull request as draft April 3, 2024 22:56
@zeertzjq zeertzjq added the marks marks, extmarks, decorations, virtual text, namespaces label Apr 3, 2024
@NStefan002 NStefan002 marked this pull request as ready for review April 3, 2024 23:44
@github-actions github-actions bot requested a review from bfredl April 3, 2024 23:44
src/nvim/api/extmark.c Outdated Show resolved Hide resolved
@NStefan002 NStefan002 marked this pull request as draft April 18, 2024 17:29
@github-actions github-actions bot removed the request for review from bfredl April 18, 2024 17:29
In function `nvim_buf_set_extmark`, when validating `end_col` check
for -1 and values in range [0, MAXCOL].
@NStefan002 NStefan002 marked this pull request as ready for review April 19, 2024 19:28
@github-actions github-actions bot requested a review from bfredl April 19, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:skip-news marks marks, extmarks, decorations, virtual text, namespaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot specify -1 for end_col in nvim_buf_set_extmark()
3 participants