mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 04:46:10 +00:00
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)
0257599036
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user