aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-25 11:37:11 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-25 11:38:31 +0800
commit8212bec4e94b42464cf09b37ae475f9bd3402df6 (patch)
treef46de8434ad3aa37330355eccb8c149f7f001aa7 /src
parentc2a9c64d231ff234a32189996ed88a8c91c0c046 (diff)
downloadrneovim-8212bec4e94b42464cf09b37ae475f9bd3402df6.tar.gz
rneovim-8212bec4e94b42464cf09b37ae475f9bd3402df6.tar.bz2
rneovim-8212bec4e94b42464cf09b37ae475f9bd3402df6.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/po/cleanup.vim2
1 files changed, 2 insertions, 0 deletions
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