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

fix: marks disappears after (un)comment #110

Merged
merged 2 commits into from
Feb 1, 2022
Merged

fix: marks disappears after (un)comment #110

merged 2 commits into from
Feb 1, 2022

Conversation

numToStr
Copy link
Owner

@numToStr numToStr commented Jan 30, 2022

Using nvim_buf_set_lines destroys the marks within the (un)comment region.
To prevent that I am now wrapping every API function with lockmarks which
will preserve the marks inside the region.

Fixes #24 #76

@numToStr numToStr linked an issue Jan 30, 2022 that may be closed by this pull request
@numToStr numToStr changed the title fix: marks disappears after comment/uncomment fix: marks disappears after (un)comment Jan 30, 2022
Using `nvim_buf_set_lines` destroys the marks within the
comment/uncomment region. To prevent that I am now wrapping API function
with `lockmarks` which will preserve the marks inside the region.

Fixes #24 #76
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 this pull request may close these issues.

Last visual selection is broken Marks disappear in un-/commented lines
1 participant