mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 05:25:10 +00:00
vim-patch:32a5faa: check.vim complains about overlong comment lines
Problem: check.vim complains about overlong comment lines
Solution: only check the length of non-commented lines
32a5faa6d7
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -229,8 +229,8 @@ elseif ctu
|
|||||||
" endif
|
" endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Check that all lines are no longer than 80 chars
|
" Check that no lines are longer than 80 chars (except comments)
|
||||||
let overlong = search('\%>80v', 'n')
|
let overlong = search('^[^#]\%>80v', 'n')
|
||||||
if overlong > 0
|
if overlong > 0
|
||||||
echomsg "Lines should be wrapped at 80 columns"
|
echomsg "Lines should be wrapped at 80 columns"
|
||||||
" TODO: make this an error
|
" TODO: make this an error
|
||||||
|
|||||||
Reference in New Issue
Block a user