diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-08-20 10:04:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 10:04:55 +0200 |
commit | 1cc4706e94489498b12c4844c1b3a2e9aa5cc921 (patch) | |
tree | a2517116d23cceed4ccb41c38c40573b3a7a6c85 /runtime/tools | |
parent | bffaf1e27e49c3dbbc0b59d023a0fd9243e254aa (diff) | |
download | rneovim-1cc4706e94489498b12c4844c1b3a2e9aa5cc921.tar.gz rneovim-1cc4706e94489498b12c4844c1b3a2e9aa5cc921.tar.bz2 rneovim-1cc4706e94489498b12c4844c1b3a2e9aa5cc921.zip |
vim-patch:e80086446cc2 (#19848)
* vim-patch:e80086446cc2
Update runtime files
https://github.com/vim/vim/commit/e80086446cc20856ed8359bc8dc87c4d430da4c8
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
Diffstat (limited to 'runtime/tools')
-rw-r--r-- | runtime/tools/check_colors.vim | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/runtime/tools/check_colors.vim b/runtime/tools/check_colors.vim index 85df882d1e..035914980d 100644 --- a/runtime/tools/check_colors.vim +++ b/runtime/tools/check_colors.vim @@ -8,10 +8,23 @@ set cpo&vim func! Test_check_colors() let l:savedview = winsaveview() call cursor(1,1) + + " err is + " { + " colors_name: "message", + " init: "message", + " background: "message", + " ....etc + " highlight: { + " 'Normal': "Missing ...", + " 'Conceal': "Missing ..." + " ....etc + " } + " } let err = {} " 1) Check g:colors_name is existing - if !search('\<\%(g:\)\?colors_name\>', 'cnW') + if search('\<\%(g:\)\?colors_name\>', 'cnW') == 0 let err['colors_name'] = 'g:colors_name not set' else let err['colors_name'] = 'OK' @@ -202,11 +215,12 @@ func! Test_check_colors() call Result(err) endfu + fu! Result(err) let do_groups = 0 echohl Title|echomsg "---------------"|echohl Normal for key in sort(keys(a:err)) - if key is# 'highlight' + if key ==# 'highlight' let do_groups = !empty(a:err[key]) continue else |