Mercurial > vim
view src/po/fixfilenames.vim @ 30592:457ea0570b6f v9.0.0631
patch 9.0.0631: too many delete() calls in tests
Commit: https://github.com/vim/vim/commit/145d1fd91041bd2a22a11eef0357702e420796e2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 30 21:57:11 2022 +0100
patch 9.0.0631: too many delete() calls in tests
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 30 Sep 2022 23:00:10 +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