From 15ba2c35a89d314a33d50dff06497c6b509ec8e6 Mon Sep 17 00:00:00 2001 From: glepnir Date: Tue, 27 Aug 2024 20:58:21 +0800 Subject: [PATCH] fix: wrong step value --- lua/indentmini/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/indentmini/init.lua b/lua/indentmini/init.lua index 2148f2e..eb6c6a5 100644 --- a/lua/indentmini/init.lua +++ b/lua/indentmini/init.lua @@ -203,7 +203,7 @@ local function on_win(_, winid, bufnr, toprow, botrow) return false end context = { snapshot = {} } - context.step = vim.o.expandtab and get_shiftw_value(bufnr) or vim.bo[bufnr].tabstop + context.step = get_shiftw_value(bufnr) for i = toprow, botrow do context.snapshot[i + 1] = make_snapshot(i + 1) end