vim-autoformat / vim-autoformat

Provide easy code formatting in Vim by integrating existing code formatters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

verbose level is not detected correctly

CD3 opened this issue · comments

The verbose mode level is not detected, only whether verbose mode is set. The lines in plugin/autoformat are here:

let verbose = &verbose || g:autoformat_verbosemode == 1

let verbose = &verbose || g:autoformat_verbosemode == 1

let verbose = &verbose || g:autoformat_verbosemode == 1

let verbose = &verbose || g:autoformat_verbosemode == 1

let verbose = &verbose || g:autoformat_verbosemode == 1

The || makes the result a boolean, so it will always return 0 or 1, so it is not possible to set the verbose level to 2.