summaryrefslogtreecommitdiff
path: root/src/highlight.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.0245: mechanism to prevent recursive screen updating is incompletev9.0.0245Bram Moolenaar2022-08-221-9/+9
| | | | | | Problem: Mechanism to prevent recursive screen updating is incomplete. Solution: Add "redraw_not_allowed" and set it in build_stl_str_hl(). (issue #10952)
* patch 9.0.0206: redraw flags are not named specificallyv9.0.0206Bram Moolenaar2022-08-141-12/+12
| | | | | Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen().
* patch 9.0.0203: confusing variable namev9.0.0203Bram Moolenaar2022-08-131-39/+39
| | | | | Problem: Confusing variable name. Solution: Use "prim_aep" instead of "spell_aep".
* patch 9.0.0189: invalid memory access for text prop without highlightv9.0.0189Bram Moolenaar2022-08-101-0/+1
| | | | | Problem: Invalid memory access for text prop without highlight. Solution: Check for a valid highlight ID.
* patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar2022-07-231-5/+4
| | | | | Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
* patch 9.0.0007: no support for double, dotted and dashed underlinesv9.0.0007Bram Moolenaar2022-06-291-10/+23
| | | | | Problem: No support for double, dotted and dashed underlines. Solution: Add the termcap entries and highlight modes. (closes #9553)
* patch 9.0.0003: functions are global while they could be localv9.0.0003Yegappan Lakshmanan2022-06-291-1/+1
| | | | | | Problem: Functions are global while they could be local. Solution: Add "static". Add a few tests. (Yegappan Lakshmanan, closes #10612)
* patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar2022-05-091-1/+1
| | | | | Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
* patch 8.2.4877: MS-Windows: Wrongly using Normal colors for termguicolorsv8.2.4877Christian Brabandt2022-05-051-21/+0
| | | | | | Problem: MS-Windows: Using Normal colors for termguicolors causes problems. Solution: Do not use Normal colors to set sg_gui_fg and sg_gui_bg. (Christian Brabandt, closes #10317, closes #10241)
* patch 8.2.4858: K_SPECIAL may be escaped twicev8.2.4858zeertzjq2022-05-021-1/+1
| | | | | Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes #10340)
* patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753Bram Moolenaar2022-04-151-2/+2
| | | | | Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
* patch 8.2.4724: current instance of last search pattern not easily spottedv8.2.4724LemonBoy2022-04-091-0/+1
| | | | | Problem: Current instance of last search pattern not easily spotted. Solution: Add CurSearch highlighting. (closes #10133)
* patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan2022-04-041-7/+7
| | | | | Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
* patch 8.2.4402: missing parenthesis may cause unexpected problemsv8.2.4402kylo2522022-02-161-2/+2
| | | | | Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes #9788)
* patch 8.2.4045: some global functions are only used in one filev8.2.4045Yegappan Lakshmanan2022-01-081-14/+17
| | | | | Problem: Some global functions are only used in one file. Solution: Make the functions static. (Yegappan Lakshmanan, closes #9492)
* patch 8.2.4038: various code not used when features are disabledv8.2.4038Dominique Pelle2022-01-081-0/+2
| | | | | Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
* patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar2022-01-051-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.4005: error messages are spread outv8.2.4005Bram Moolenaar2022-01-041-2/+2
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3986: error messages are spread outv8.2.3986Bram Moolenaar2022-01-021-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3985: error messages are spread outv8.2.3985Bram Moolenaar2022-01-021-17/+14
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-3/+3
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3757: an overlong highlight group name is silently truncatedv8.2.3757erw72021-12-071-2/+9
| | | | | Problem: An overlong highlight group name is silently truncated. Solution: Give an error if the name is too long. (closes #9289)
* patch 8.2.3668: messages may be corruptedv8.2.3668Yegappan Lakshmanan2021-11-241-46/+72
| | | | | | Problem: Messages may be corrupted. Solution: Use another buffer instead of IObuff. (Yegappan Lakshmanan, closes #9195)
* patch 8.2.3664: cannot adjust sign highlighting for 'cursorline'v8.2.3664Bram Moolenaar2021-11-241-0/+2
| | | | | | Problem: Cannot adjust sign highlighting for 'cursorline'. Solution: Add CursorLineSign and CursorLineFold highlight groups. (Gregory Anders, closes #9201)
* patch 8.2.3628: looking terminal colors is a bit slowv8.2.3628Bram Moolenaar2021-11-201-0/+5
| | | | | Problem: Looking terminal colors is a bit slow. Solution: Cache the terminal colors. (closes #9130, closes #9058)
* patch 8.2.3605: cannot clear and unlinke a highlight group with hlset()v8.2.3605Yegappan Lakshmanan2021-11-161-17/+35
| | | | | | Problem: Cannot clear and unlinke a highlight group with hlset() in a single call. Solution: Add the "force" option. (Yegappan Lakshmanan, closes #9117)
* patch 8.2.3590: test for v:colornames sometimes failsv8.2.3590Drew Vogel2021-11-131-33/+0
| | | | | | Problem: Test for v:colornames sometimes fails. (Dominique Pellé) Solution: Check features. Clear v:colornames between tests. (Drew Vogel, closes #9105, closes #9073)
* patch 8.2.3578: manipulating highlighting is complicatedv8.2.3578Yegappan Lakshmanan2021-11-031-0/+454
| | | | | | Problem: Manipulating highlighting is complicated. Solution: Add the hlget() and hlset() functions. (Yegappan Lakshmanan, closes #9039)
* patch 8.2.3563: build failure with +eval but without GUI or +termguicolorsv8.2.3563Bram Moolenaar2021-10-251-2/+2
| | | | | Problem: Build failure with +eval but without GUI or +termguicolors Solution: Adjust #ifdef. (John Marriott)
* patch 8.2.3562: cannot add color namesv8.2.3562Drew Vogel2021-10-241-1/+232
| | | | | Problem: Cannot add color names. Solution: Add the v:colornames dictionary. (Drew Vogel, closes #8761)
* patch 8.2.3541: compiler warning for unused variable in tiny versionv8.2.3541Bram Moolenaar2021-10-191-0/+4
| | | | | Problem: Compiler warning for unused variable in tiny version. Solution: Add #ifdef. (John Marriott)
* patch 8.2.3538: else-if indenting is confusingv8.2.3538Yegappan Lakshmanan2021-10-191-4/+6
| | | | | Problem: Else-if indenting is confusing. Solution: Add curly brackets. (Yegappan Lakshmanan, closes #9017)
* patch 8.2.3536: the do_highlight() function is way too longv8.2.3536Yegappan Lakshmanan2021-10-181-769/+912
| | | | | | Problem: The do_highlight() function is way too long. Solution: Split it into several functions. (Yegappan Lakshmanan, closes #9011)
* patch 8.2.3516: terminal window does not have transparent backgroundv8.2.3516Milly2021-10-151-12/+0
| | | | | | Problem: Terminal window does not have transparent background when 'termguicolors' is used. Solution: Fix the background color. (closes #2361, closes #9002)
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-2/+2
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* patch 8.2.1771: synIDattr() cannot get the value of ctermulv8.2.1771Bram Moolenaar2020-09-291-1/+6
| | | | | Problem: synIDattr() cannot get the value of ctermul. Solution: Add the "ul" value for "what". (closes #7037)
* patch 8.2.1705: "verbose hi Name" reports incorrect info after ":hi clear"v8.2.1705Bram Moolenaar2020-09-181-9/+12
| | | | | Problem: "verbose hi Name" reports incorrect info after ":hi clear". Solution: Store the script context. (Antony Scriven, closes #6975)
* patch 8.2.1703: ":highlight clear" does not restore default linkv8.2.1703Bram Moolenaar2020-09-171-10/+20
| | | | | | Problem: ":highlight clear" does not restore default link. Solution: Remember the default link and restore it. (Antony Scriven, closes #6970, closes #4405)
* patch 8.2.1693: "hi def" does not work for cleared highlightv8.2.1693Bram Moolenaar2020-09-161-2/+4
| | | | | | Problem: "hi def" does not work for cleared highlight. Solution: Check the "sg_cleared" flag. (Maxim Kim, closes #6956, closes #4405)
* patch 8.2.1078: highlight and match functionality together in one filev8.2.1078Bram Moolenaar2020-06-281-1343/+0
| | | | | | Problem: Highlight and match functionality together in one file. Solution: Move match functionality to a separate file. (Yegappan Lakshmanan, closes #6352)
* patch 8.2.1056: wrong display when mixing match conceal and syntax concealv8.2.1056Bram Moolenaar2020-06-251-7/+5
| | | | | Problem: Wrong display when mixing match conceal and syntax conceal. Solution: Adjust how conceal flags are used. (closes #6327, closes #6303)
* patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar2020-06-121-2/+2
| | | | | Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
* patch 8.2.0928: many type casts are used for vim_strnsave()v8.2.0928Bram Moolenaar2020-06-071-1/+1
| | | | | | Problem: Many type casts are used for vim_strnsave(). Solution: Make the length argument size_t instead of int. (Ken Takata, closes #5633) Remove some type casts.
* patch 8.2.0906: when setting 'termguicolors' SpellBad is no longer redv8.2.0906Bram Moolenaar2020-06-051-1/+6
| | | | | | | | Problem: When setting 'termguicolors' SpellBad is no longer red. Solution: Only use the RGB guisp color for cterm when using the "underline" or "undercurl" attributes to avoid the background color to be cleared. Also make t_8u empty when the termresponse indicates a real xterm. (closes #6207)
* patch 8.2.0891: clang warns for invalid conversionv8.2.0891Bram Moolenaar2020-06-031-1/+1
| | | | | Problem: Clang warns for invalid conversion. Solution: Use zero instead of INVALCOLOR.
* patch 8.2.0890: no color in terminal window when 'termguicolor' is setv8.2.0890Bram Moolenaar2020-06-021-0/+3
| | | | | Problem: No color in terminal window when 'termguicolor' is set. Solution: Clear the underline color. (closes #6186)
* patch 8.2.0863: cannot set a separate color for underline/undercurlv8.2.0863Bram Moolenaar2020-05-311-16/+56
| | | | | Problem: Cannot set a separate color for underline/undercurl. Solution: Add the t_AU and t_8u termcap codes. (Timur Celik, closes #6011)
* patch 8.2.0855: GUI tests fail because the test doesn't use a modifierv8.2.0855Bram Moolenaar2020-05-301-2/+1
| | | | | Problem: GUI tests fail because the test doesn't use a modifier. Solution: Add "\{xxx}" to be able to encode a modifier.
* patch 8.2.0751: Vim9: performance can be improvedv8.2.0751Bram Moolenaar2020-05-131-1/+1
| | | | | | Problem: Vim9: performance can be improved. Solution: Don't call break. Inline check for list materialize. Make an inline version of ga_grow().