check.vim complains about overlong comment lines Commit: https://github.com/vim/vim/commit/32a5faa6d7592795c6ec77e44dc0357b92b8a681 Author: Christian Brabandt <c...@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 <c...@256bit.org> diff --git a/src/po/check.vim b/src/po/check.vim index b0460f10d..2ea4a3824 100644 --- 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 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sCahg-00GLe0-3E%40256bit.org.