Christian Brabandt wrote:
> On Do, 21 Apr 2016, Bram Moolenaar wrote:
>
> > Patch 7.4.1770
> [...]
> > + /*
> > + * Last attempt. Look in the file "$VIM/rgb.txt".
> > + */
>
> This part of the code is now in term.c, gui_mac.c, gui_photon.c and
> gui_w32.c Also the color definitions are slightly different between some
> of the GUIs.
>
> Attached is a patch, that simplifies this code a bit. I put the shared
> code into term.c (which most likely is not the correct location). Should
> it be placed into misc2.c perhaps?
Thanks. I think putting this in term.c is fine.
It appears rgb.txt is re-read for every color name. Should be much
faster if we read it once and keep the result.
--
TIM: To the north there lies a cave, the cave of Caerbannog, wherein, carved
in mystic runes, upon the very living rock, the last words of Olfin
Bedwere of Rheged make plain the last resting place of the most Holy
Grail.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.