To: vim-dev@vim.org Subject: Patch 5.8.006 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.8.006 Problem: ":hi def link" adds a link to a highlight group while it already has attributes for the GUI. (Richard Robinson) Solution: Change "FEAT_GUI" to "USE_GUI" in hl_has_settings(). Files: src/syntax.c *** ../vim-5.8.005/src/syntax.c Fri Jun 15 20:02:18 2001 --- src/syntax.c Thu Jun 28 11:22:29 2001 *************** *** 5523,5529 **** { return ( HL_TABLE()[idx].sg_term_attr != 0 || HL_TABLE()[idx].sg_cterm_attr != 0 ! #ifdef FEAT_GUI || HL_TABLE()[idx].sg_gui_attr != 0 #endif || (check_link && (HL_TABLE()[idx].sg_set & SG_LINK))); --- 5523,5529 ---- { return ( HL_TABLE()[idx].sg_term_attr != 0 || HL_TABLE()[idx].sg_cterm_attr != 0 ! #ifdef USE_GUI || HL_TABLE()[idx].sg_gui_attr != 0 #endif || (check_link && (HL_TABLE()[idx].sg_set & SG_LINK))); *** ../vim-5.8.005/src/version.c Thu Jun 28 11:28:22 2001 --- src/version.c Thu Jun 28 11:22:46 2001 *************** *** 439,440 **** --- 439,442 ---- { /* Add new patch number below this line */ + /**/ + 6, /**/ -- hundred-and-one symptoms of being an internet addict: 20. When looking at a pageful of someone else's links, you notice all of them are already highlighted in purple. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///