docs: fix code comment typos (#574)

This commit is contained in:
Raffaele Mancuso 2024-05-19 12:41:23 +02:00 committed by GitHub
parent 066cccf48a
commit a9ea8a4c5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -226,10 +226,10 @@ function M.send_lines_to_terminal(selection_type, trim_spaces, cmd_data)
else
local res = nil
if string.match(selection_type, "visual") then
-- This calls vim.fn.getpos, while uses 1-based indexing for columns
-- This calls vim.fn.getpos, which uses 1-based indexing for columns
res = utils.get_line_selection("visual")
else
-- This calls vim.fn.getpos, while uses 1-based indexing for columns
-- This calls vim.fn.getpos, which uses 1-based indexing for columns
res = utils.get_line_selection("motion")
end
start_line, start_col = unpack(res.start_pos)