Mercurial > vim
view runtime/spell/check_locales.vim @ 24226:f49f80a0905d v8.2.2654
patch 8.2.2654: Vim9: getting a character from a string can be slow
Commit: https://github.com/vim/vim/commit/ff871400461183010d3ab98f3f326e4bb75e221b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 26 13:34:05 2021 +0100
patch 8.2.2654: Vim9: getting a character from a string can be slow
Problem: Vim9: getting a character from a string can be slow.
Solution: Avoid a function call to get the character byte size. (https://github.com/vim/vim/issues/8000)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Mar 2021 13:45:02 +0100 |
parents | ea3c3f13385c |
children |
line wrap: on
line source
" Script to check if all the locales used in spell files are available. grep /sys env LANG/ */main.aap let not_supported = [] for item in getqflist() let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '') try exe 'lang ' . lang catch /E197/ call add(not_supported, lang) endtry endfor if len(not_supported) > 0 echo "Unsupported languages:" for l in not_supported echo l endfor else echo "Everything appears to be OK" endif