Skip to content

Commit

Permalink
perf: get indent from snapshot directly
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed May 25, 2024
1 parent 85461e1 commit 69bd2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/indentmini/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ end

local function current_line_range(winid, shiftw)
local row = api.nvim_win_get_cursor(winid)[1] - 1
local indent = get_indent(row + 1)
local indent, _ = find_in_snapshot(row + 1)
if indent == 0 then
return INVALID, INVALID, INVALID
end
Expand Down

0 comments on commit 69bd2e0

Please sign in to comment.