Patch 8.2.5001
Problem:    Checking translations affects the search pattern history.
Solution:   Use "keeppatterns". (Doug Kearns)
Files:      src/po/check.vim


*** ../vim-8.2.5000/src/po/check.vim    2020-08-30 18:42:02.949565997 +0100
--- src/po/check.vim    2022-05-22 15:26:08.998368408 +0100
***************
*** 38,44 ****
  " Start at the first "msgid" line.
  let wsv = winsaveview()
  1
! /^msgid\>
  
  " When an error is detected this is set to the line number.
  " Note: this is used in the Makefile.
--- 38,44 ----
  " Start at the first "msgid" line.
  let wsv = winsaveview()
  1
! keeppatterns /^msgid\>
  
  " When an error is detected this is set to the line number.
  " Note: this is used in the Makefile.
***************
*** 101,107 ****
  
    " Find next msgid.  Quit when there is no more.
    let lnum = line('.')
!   silent! /^msgid\>
    if line('.') == lnum
      break
    endif
--- 101,107 ----
  
    " Find next msgid.  Quit when there is no more.
    let lnum = line('.')
!   silent! keeppatterns /^msgid\>
    if line('.') == lnum
      break
    endif
***************
*** 134,140 ****
  " 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:
  while 1
    let lnum = search('^msgid\>')
    if lnum <= 0
--- 134,140 ----
  " Check that the \n at the end of the msgid line is also present in the msgstr
  " line.  Skip over the header.
  1
! keeppatterns /^"MIME-Version:
  while 1
    let lnum = search('^msgid\>')
    if lnum <= 0
*** ../vim-8.2.5000/src/version.c       2022-05-22 14:48:26.371247286 +0100
--- src/version.c       2022-05-22 15:28:01.974330778 +0100
***************
*** 736,737 ****
--- 736,739 ----
  {   /* Add new patch number below this line */
+ /**/
+     5001,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
262. Your computer has it's own phone line - but your daughter doesn't.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220522142926.19C2E1C0D2C%40moolenaar.net.

Raspunde prin e-mail lui