Skip to content

Commit

Permalink
fix(textobj): fix handling cii correctly
Browse files Browse the repository at this point in the history
This commit fixes the cii when it is not correctly putting the cursor in
the right place after the change. Thanks to @melkster for the idea.

Ref #2
  • Loading branch information
arsham committed Jul 15, 2022
1 parent f71fd69 commit 8cefd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/indent-tools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ local function in_indent() --{{{
last_line = i
end

local sequence = string.format("%dgg0o%dgg$$", first_line, last_line)
local sequence = string.format("%dgg0o%dgg$V", first_line, last_line)
quick.normal("xt", sequence)
end
--}}}
Expand Down

0 comments on commit 8cefd2d

Please sign in to comment.