view src/po/tojavascript.vim @ 26185:582218dbc6b3 v8.2.3624

patch 8.2.3624: when renaming a terminal buffer status text is not updated Commit: https://github.com/vim/vim/commit/3ad695328f94e0197e84454f125c7f3464091d0c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 19 17:01:08 2021 +0000 patch 8.2.3624: when renaming a terminal buffer status text is not updated Problem: When renaming a terminal buffer the status text is not updated. Solution: Clear the cached status text when renaming a terminal buffer. (closes #9162)
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Nov 2021 18:15:03 +0100
parents 52e970719f4b
children 7296f4ef3ead
line wrap: on
line source

" Invoked with the name "vim.pot" and a list of Vim script names.
" Converts them to a .js file, stripping comments, so that xgettext works.
" Javascript is used because, like Vim, it accepts both single and double
" quoted strings.

set shortmess+=A

for name in argv()[1:]
  exe 'edit ' .. fnameescape(name)

  " Strip comments
  g/^\s*"/s/.*//

  " Write as .js file, xgettext recognizes them
  exe 'w! ' .. fnamemodify(name, ":t:r") .. ".js"
endfor

quit