Skip to content

Commit

Permalink
Make comment_toggle accept count (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
winston0410 authored Jun 2, 2021
1 parent 55801f7 commit 757969b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/nvim_comment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function M.operator(mode)
end

function M.comment_toggle(line_start, line_end)
line_end = vim.v.count ~= 0 and line_end + vim.v.count - 1 or line_end
local left, right = M.get_comment_wrapper()
if not left or not right then return end

Expand Down

0 comments on commit 757969b

Please sign in to comment.