roryokane / detectindent

Vim script for automatically detecting indent settings
21 stars 6 forks source link

g:detectindent_min_indent not respected #13

Closed Konfekt closed 8 years ago

Konfekt commented 8 years ago

At

https://github.com/roryokane/detectindent/blob/master/plugin/detectindent.vim#L118

if g:detectindent_max_indent exists and a:current_indent_width < g:detectindent_min_indent, then g:detectindent_min_indent is not respected.

roryokane commented 8 years ago

The unit test I added to test this bug now passes.

Konfekt commented 8 years ago

Thanks for the prompt and good work, the code looks much more sensible now. Hopefully no more sw=1!