diff --git a/plugin/surround.vim b/plugin/surround.vim index 5ed8f64..e0aac1d 100644 --- a/plugin/surround.vim +++ b/plugin/surround.vim @@ -340,7 +340,7 @@ function! s:insert(...) " {{{1 endfunction " }}}1 function! s:reindent() " {{{1 - if exists("b:surround_indent") ? b:surround_indent : (exists("g:surround_indent") && g:surround_indent) + if exists("b:surround_indent") ? b:surround_indent : (!exists("g:surround_indent") || g:surround_indent) silent norm! '[='] endif endfunction " }}}1