From cccb21df3b4c6fe0aaa99743c418aa973aeebad0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 04:10:59 +0200 Subject: Merging upstream version 2:9.1.0374. Signed-off-by: Daniel Baumann --- src/po/check.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/po/check.vim') diff --git a/src/po/check.vim b/src/po/check.vim index 917c648..b0460f1 100644 --- a/src/po/check.vim +++ b/src/po/check.vim @@ -226,6 +226,15 @@ elseif ctu " endif endif +" Check that all lines are no longer than 80 chars +let overlong = search('\%>80v', 'n') +if overlong > 0 + echomsg "Lines should be wrapped at 80 columns" + " TODO: make this an error + " if error == 0 + " let error = overlong + " endif +endif if error == 0 " If all was OK restore the view. -- cgit v1.2.3