From 8212bec4e94b42464cf09b37ae475f9bd3402df6 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 25 Nov 2022 11:37:11 +0800 Subject: vim-patch:8.2.4412: translation cleanup script does not remove empty lines at end Problem: Translation cleanup script does not remove empty lines at end. Solution: Remove empty lines at the end. (Ken Takata, closes vim/vim#9794) https://github.com/vim/vim/commit/0257599036ceb3658b27a4de07834ca0d2fa418e --- src/nvim/po/cleanup.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/nvim/po/cleanup.vim b/src/nvim/po/cleanup.vim index 8384286b0d..6df5edd498 100644 --- a/src/nvim/po/cleanup.vim +++ b/src/nvim/po/cleanup.vim @@ -22,7 +22,9 @@ silent g/^msgstr"/s//msgstr "/ silent g/^msgid"/s//msgid "/ silent g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ / +" clean up empty lines silent g/^\n\n\n/.d +silent! %s/\n\+\%$// if s:was_diff setl diff -- cgit