Mercurial > vim
changeset 35294:87914e4b8178
check.vim complains about overlong comment lines
Commit: https://github.com/vim/vim/commit/32a5faa6d7592795c6ec77e44dc0357b92b8a681
Author: Christian Brabandt <cb@256bit.org>
Date: Thu May 30 09:51:47 2024 +0200
check.vim complains about overlong comment lines
Problem: check.vim complains about overlong comment lines
Solution: only check the length of non-commented lines
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 30 May 2024 10:00:04 +0200 |
parents | 305c04c4fa7b |
children | 48d01e3323ca |
files | src/po/check.vim |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/po/check.vim +++ b/src/po/check.vim @@ -226,8 +226,8 @@ elseif ctu " endif endif -" Check that all lines are no longer than 80 chars -let overlong = search('\%>80v', 'n') +" Check that no lines are longer than 80 chars (except comments) +let overlong = search('^[^#]\%>80v', 'n') if overlong > 0 echomsg "Lines should be wrapped at 80 columns" " TODO: make this an error