Skip to content

Commit

Permalink
fix!(BlockComment): Actually detect Visual Block Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasTavaresA committed Jan 26, 2024
1 parent 72b0b4d commit 922c5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/SingleComment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function M.BlockComment()
local _, er, ec, _ = unpack(vim.fn.getpos("v"))
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)

if mode == "v" or mode == "V" or mode == "CTRL-V" then
if mode == "v" or mode == "V" or mode == "\x16" then
-- keep start/end in the right place in reverse selection
if sr > er then
sr, er = er, sr
Expand Down

0 comments on commit 922c5e5

Please sign in to comment.