view src/po/tojavascript.vim @ 31198:b4491e73d6d1 v9.0.0933

patch 9.0.0933: Kitty shows "already at oldest change" on startup Commit: https://github.com/vim/vim/commit/43300f6034fbefb54b5d1dc1b4c72d5fe57438c8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 23 23:30:58 2022 +0000 patch 9.0.0933: Kitty shows "already at oldest change" on startup Problem: Kitty shows "already at oldest change" on startup. Solution: When receiving the keyboard protocol state return the ignore key. (closes #11601)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Nov 2022 00:45: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