You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, nvim_buf_set_lines() is used which should be replaced with nvim_buf_set_text().
Why?
This is from :h nvim_buf_set_text()
This is recommended over nvim_buf_set_lines when only
modifying parts of a line, as extmarks will be preserved on
non-modified parts of the touched lines.
How?
Currently, comment/uncomment is done by slicing, dicing, and modifying the lines. Because of this we only had to care about line numbers or rows. But for nvim_buf_set_text() we also need to consider the start and end of the starting and ending column to perfectly place/remove the comments
The text was updated successfully, but these errors were encountered:
Currently,
nvim_buf_set_lines()
is used which should be replaced withnvim_buf_set_text()
.Why?
This is from
:h nvim_buf_set_text()
How?
Currently, comment/uncomment is done by slicing, dicing, and modifying the lines. Because of this we only had to care about line numbers or rows. But for
nvim_buf_set_text()
we also need to consider the start and end of the starting and ending column to perfectly place/remove the commentsThe text was updated successfully, but these errors were encountered: