Closed Konfekt closed 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.
g:detectindent_max_indent
a:current_indent_width < g:detectindent_min_indent
g:detectindent_min_indent
The unit test I added to test this bug now passes.
Thanks for the prompt and good work, the code looks much more sensible now. Hopefully no more sw=1!
sw=1
At
https://github.com/roryokane/detectindent/blob/master/plugin/detectindent.vim#L118
if
g:detectindent_max_indent
exists anda:current_indent_width < g:detectindent_min_indent
, theng:detectindent_min_indent
is not respected.