comparison src/job.c @ 26057:92c424550367 v8.2.3562

patch 8.2.3562: cannot add color names Commit: https://github.com/vim/vim/commit/e30d10253fa634c4f60daa798d029245f4eed393 Author: Drew Vogel <dvogel@github> Date: Sun Oct 24 20:35:07 2021 +0100 patch 8.2.3562: cannot add color names Problem: Cannot add color names. Solution: Add the v:colornames dictionary. (Drew Vogel, closes https://github.com/vim/vim/issues/8761)
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 Oct 2021 21:45:04 +0200
parents 838a0108a92d
children fd1cbe72815a
comparison
equal deleted inserted replaced
26056:977bbbf36908 26057:92c424550367
557 guicolor = GUI_GET_COLOR(color_name); 557 guicolor = GUI_GET_COLOR(color_name);
558 if (guicolor == INVALCOLOR) 558 if (guicolor == INVALCOLOR)
559 { 559 {
560 if (called_emsg_before == called_emsg) 560 if (called_emsg_before == called_emsg)
561 // may not get the error if the GUI didn't start 561 // may not get the error if the GUI didn't start
562 semsg(_(e_alloc_color), color_name); 562 semsg(_(e_cannot_allocate_color_str), color_name);
563 return FAIL; 563 return FAIL;
564 } 564 }
565 565
566 rgb[n] = GUI_MCH_GET_RGB(guicolor); 566 rgb[n] = GUI_MCH_GET_RGB(guicolor);
567 } 567 }