Mercurial > vim
view src/po/tojavascript.vim @ 32683:5dfaba11d7c3 v9.0.1672
patch 9.0.1672: tabline highlight wrong after truncated double width label
Commit: https://github.com/vim/vim/commit/d392a74c5a8af8271a33a20d37ae1a8ea422cb4b
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Jul 1 20:24:40 2023 +0100
patch 9.0.1672: tabline highlight wrong after truncated double width label
Problem: Tabline highlight wrong after truncated double width label.
Solution: Fill up half a double width character later. (closes https://github.com/vim/vim/issues/12614)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jul 2023 21:30:07 +0200 |
parents | 695b50472e85 |
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. " 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, also after :set commands. g/^\s*"/s/.*// g/^\s*set .*"/s/.*// " Write as .js file, xgettext recognizes them exe 'w! ' .. fnamemodify(name, ":t:r") .. ".js" endfor quit