view src/po/fixfilenames.vim @ 30871:86683574317a v9.0.0770

patch 9.0.0770: quickfix commands may keep memory allocated Commit: https://github.com/vim/vim/commit/d8cd6f7427bc89aa38f42cc44f58bf5fb5f0f972 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Oct 16 11:30:48 2022 +0100 patch 9.0.0770: quickfix commands may keep memory allocated Problem: Quickfix commands may keep memory allocated. Solution: Free memory when it's a bit much. (Yegappan Lakshmanan, closes #11379)
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Oct 2022 12:45:05 +0200
parents aa91480771fe
children 04563887d70e
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.

set shortmess+=A

for name in argv()[1:]
  let jsname = fnamemodify(name, ":t:r") .. ".js"
  exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
endfor

write
last
quit