vim-jsbeautify icon indicating copy to clipboard operation
vim-jsbeautify copied to clipboard

call RangeJsBeautify() insert new line when .editorconfig: insert_final_newline=true

Open sabakugaara opened this issue 8 years ago • 3 comments

if .editorconfig insert_final_newline=true, call RangeJsBeautify() will insert a new line after vim selected range

sabakugaara avatar Mar 28 '16 04:03 sabakugaara

@sabakugaara thx

maksimr avatar Mar 28 '16 07:03 maksimr

Maybe a way to override the global jsbeautify setting while calling the RangeJsBeautify function to solve this?

nerdpad avatar Dec 12 '16 20:12 nerdpad

@NerdPad I think we cuold delete(or rewrite on false) insert_final_newline if end of the range does not equal last line

maksimr avatar Dec 12 '16 20:12 maksimr