diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-23 07:24:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 07:24:44 +0800 |
commit | 39fb97b2a5bb7ecd69cd7955fba045f7b002df6d (patch) | |
tree | 723510e5972262300a4c6e4835528cfc78ced370 /src | |
parent | 378615b8ee9440edb9ab7c71d847d03d52c61b2f (diff) | |
download | rneovim-39fb97b2a5bb7ecd69cd7955fba045f7b002df6d.tar.gz rneovim-39fb97b2a5bb7ecd69cd7955fba045f7b002df6d.tar.bz2 rneovim-39fb97b2a5bb7ecd69cd7955fba045f7b002df6d.zip |
vim-patch:8.2.5001: checking translations affects the search pattern history (#18709)
Problem: Checking translations affects the search pattern history.
Solution: Use "keeppatterns". (Doug Kearns)
https://github.com/vim/vim/commit/8a3704723c40779d688ef957dbe5bd8b65c25f95
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/po/check.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/po/check.vim b/src/nvim/po/check.vim index aca878f9d5..7705ba8577 100644 --- a/src/nvim/po/check.vim +++ b/src/nvim/po/check.vim @@ -41,7 +41,7 @@ set nowrapscan " Start at the first "msgid" line. let wsv = winsaveview() 1 -/^msgid\> +keeppatterns /^msgid\> " When an error is detected this is set to the line number. " Note: this is used in the Makefile. @@ -104,7 +104,7 @@ while 1 " Find next msgid. Quit when there is no more. let lnum = line('.') - silent! /^msgid\> + silent! keeppatterns /^msgid\> if line('.') == lnum break endif @@ -137,7 +137,7 @@ endfunc " Check that the \n at the end of the msgid line is also present in the msgstr " line. Skip over the header. 1 -/^"MIME-Version: +keeppatterns /^"MIME-Version: while 1 let lnum = search('^msgid\>') if lnum <= 0 |