view src/po/fixfilenames.vim @ 27416:0b3bf3cbe42f v8.2.4236

patch 8.2.4236: accessing freed memory Commit: https://github.com/vim/vim/commit/166788c657f4b1090a31ea37a023b1f2c78790c8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 27 21:56:40 2022 +0000 patch 8.2.4236: accessing freed memory Problem: Accessing freed memory. Solution: Set the bh_curr pointer to NULL.
author Bram Moolenaar <Bram@vim.org>
date Thu, 27 Jan 2022 23:00:03 +0100
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