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
If you select multiple lines in visual mode, then run the command documented in the api page (Shown below), then typing gv to reselect previous selection only reselects the starting line, and not the entire selection.
This happens when typing in the lua command manually too, not just when having it mapped.
-- Linewise toggle using C-/map('x', '<C-_>', '<ESC><CMD>lua require("Comment.api").toggle_linewise_op(vim.fn.visualmode())<CR>')
The text was updated successfully, but these errors were encountered:
If you select multiple lines in visual mode, then run the command documented in the api page (Shown below), then typing gv to reselect previous selection only reselects the starting line, and not the entire selection.
Yes, the API functions does not preserve marks by default.
Try
-- Linewise toggle using C-/map('x', '<C-_>', '<ESC><CMD>lua require("Comment.api").locked.toggle_linewise_op(vim.fn.visualmode())<CR>')
If you select multiple lines in visual mode, then run the command documented in the api page (Shown below), then typing
gv
to reselect previous selection only reselects the starting line, and not the entire selection.This happens when typing in the lua command manually too, not just when having it mapped.
The text was updated successfully, but these errors were encountered: