Skip to content

Commit

Permalink
chore: remove print add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed May 15, 2024
1 parent 37ba06a commit c278b41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/precognition/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ function M.count_from_motionstring(motionstring)

local mode = vim.api.nvim_get_mode().mode
local cursorrow, cursorcol = unpack(vim.api.nvim_win_get_cursor(0))
vim.print("mode: " .. mode .. " cursorcol: " .. cursorcol)

if (mode == "v") and motionstring == string.format("%d", cursorcol + 1) then
--HACK: this is a special case for visual mode
--this will cause an edge case bug that if the count is the same as the cursor positions
--it will not display the count - but we cant work aroynd it with the current implementation
return 1
end

Expand Down

0 comments on commit c278b41

Please sign in to comment.