Mercurial > vim
view runtime/spell/main.aap @ 12180:88ca0110abd5 v8.0.0970
patch 8.0.0970: passing invalid highlight id
commit https://github.com/vim/vim/commit/d6a7b3e6bbb8f87507de68d86cf70eab806aab3a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 19 21:35:35 2017 +0200
patch 8.0.0970: passing invalid highlight id
Problem: if there is no StatusLine highlighting and there is StatusLineNC
or StatusLineTermNC highlighting then an invalid highlight id is
passed to combine_stl_hlt(). (Coverity)
Solution: Check id_S to be -1 instead of zero.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Aug 2017 21:45:04 +0200 |
parents | b9e314fe473f |
children | e9a47bcf7b94 |
line wrap: on
line source
# Toplevel Aap recipe for Vim spell files # # Usage: # aap generate all the .spl files # aap diff create all the diff files # "hu" is at the end, because it takes a very long time. LANG = af am bg br ca cs cy da de el en eo es fr fo ga gd gl he hr id it ku la lt lv mg mi ms nb nl nn ny pl pt ro ru rw sk sl sv sw tet th tl tn uk yi zu hu # TODO: # Finnish doesn't work, the dictionary fi_FI.zip file contains hyphenation... diff: $*LANG/diff :print Done. @for l in string.split(_no.LANG): :child $l/main.aap # The existing .spl files need to be generated when the spell file format # changes. Depending on the Vim executable does that, but results in doing it # much too often. Generate a dummy .spl file and let the .spl depend on it, so # that they are outdated when it changes. :child check/main.aap *.spl: check/check.latin1.spl