Use normal! to autointent code

... otherwise might not work as expected if the user mapped any of the commands used. See [here](http://learnvimscriptthehardway.stevelosh.com/chapters/29.html) about `normal!`.
This commit is contained in:
Sergey Alexandrov 2018-05-13 14:31:43 -04:00 committed by GitHub
parent e63b4e957a
commit bde5b4ff63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ function! s:Fallback()
echomsg "Autoindenting..." echomsg "Autoindenting..."
endif endif
" Autoindent code " Autoindent code
exe "normal gg=G" exe "normal! gg=G"
endif endif
endfunction endfunction