ledger / vim-ledger

Vim plugin for Ledger
GNU General Public License v2.0
370 stars 56 forks source link

fix: Return the correct indent when shiftwidth==0 #137

Closed cljoly closed 1 year ago

cljoly commented 1 year ago

Currently, when 'shiftwidth' is set to 0, GetLedgerIndent always returns 0, making it very ineffective.

But when 'shiftwidth' is set to 0, vim falls back to 'tabstop'. The help entry of 'shiftwidth' recommends to use the shiftwidth function to get the effective value of 'shiftwidth', which is what this fix does.

cljoly commented 1 year ago

You are welcome, thanks for all the work maintaining this plugin!