From 1cc4706e94489498b12c4844c1b3a2e9aa5cc921 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 20 Aug 2022 10:04:55 +0200 Subject: vim-patch:e80086446cc2 (#19848) * vim-patch:e80086446cc2 Update runtime files https://github.com/vim/vim/commit/e80086446cc20856ed8359bc8dc87c4d430da4c8 Co-authored-by: Sean Dewar --- runtime/tools/check_colors.vim | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'runtime/tools') 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 -- cgit