view src/po/fixfilenames.vim @ 34363:3b654f4462c5 v9.1.0112

patch 9.1.0112: Remove undo information, when cleaning quickfix buffer Commit: https://github.com/vim/vim/commit/f0d3d4a42657dca996e790aa829de3c6be7fdb63 Author: Christian Brabandt <cb@256bit.org> Date: Thu Feb 15 20:15:04 2024 +0100 patch 9.1.0112: Remove undo information, when cleaning quickfix buffer Problem: When the quickfix buffer has been modified an autocommand may invalidate the undo stack (kawarimidoll) Solution: When clearing the quickfix buffer, also wipe the undo stack fixes: #13905 closes: #13928 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 15 Feb 2024 20:30:04 +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