summaryrefslogtreecommitdiff
path: root/src/highlight.c
Commit message (Collapse)AuthorAgeFilesLines
* 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().
* patch 8.2.0635: when using 256 colors DarkYellow does not show expected colorv8.2.0635Bram Moolenaar2020-04-251-1/+1
| | | | | Problem: When using 256 colors DarkYellow does not show expected color. Solution: Use color 3 instead of 130. (Romain Lafourcade, closes #5985)
* patch 8.2.0613: Vim9: no check for space before #commentv8.2.0613Bram Moolenaar2020-04-201-10/+11
| | | | | Problem: Vim9: no check for space before #comment. Solution: Add space checks.
* patch 8.2.0612: Vim9: no check for space before #commentv8.2.0612Bram Moolenaar2020-04-201-1/+1
| | | | | Problem: Vim9: no check for space before #comment. Solution: Add space checks.
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-10/+10
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0502: Vim9: some code is not testedv8.2.0502Bram Moolenaar2020-04-021-1/+1
| | | | | Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
* patch 8.2.0434: MS-Windows with VTP: Normal color not workingv8.2.0434Bram Moolenaar2020-03-231-0/+3
| | | | | | Problem: MS-Windows with VTP: Normal color not working. Solution: After changing the Normal color update the VTP console color. (Nobuhiro Takasaki, closes #5836)
* patch 8.2.0191: cannot put a terminal in a popup windowv8.2.0191Bram Moolenaar2020-02-011-2/+3
| | | | | | Problem: Cannot put a terminal in a popup window. Solution: Allow opening a terminal in a popup window. It will always have keyboard focus until closed.
* patch 8.2.0159: non-materialized range() list causes problemsv8.2.0159Bram Moolenaar2020-01-271-0/+1
| | | | | Problem: Non-materialized range() list causes problems. (Fujiwara Takuya) Solution: Materialize the list where needed.
* patch 8.2.0056: execution stack is incomplete and inefficientv8.2.0056Bram Moolenaar2019-12-291-3/+3
| | | | | | Problem: Execution stack is incomplete and inefficient. Solution: Introduce a proper execution stack and use it instead of sourcing_name/sourcing_lnum. Create a string only when used.
* patch 8.2.0037: missing renamed messagev8.2.0037Bram Moolenaar2019-12-241-1/+1
| | | | | Problem: Missing renamed message. Solution: Now really add the error number.
* patch 8.2.0035: saving and restoring called_emsg is clumsyv8.2.0035Bram Moolenaar2019-12-231-6/+2
| | | | | Problem: Saving and restoring called_emsg is clumsy. Solution: Count the number of error messages.
* patch 8.1.2391: cannot build when __QNXNTO__ is definedv8.1.2391Bram Moolenaar2019-12-051-11/+6
| | | | | Problem: Cannot build when __QNXNTO__ is defined. (Ian Wayne Larson) Solution: Move the check for "qansi". (Ken Takata, closes #5317)
* patch 8.1.2243: typos in commentsv8.1.2243Bram Moolenaar2019-11-021-2/+3
| | | | | | Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes #5160) Also adjust formatting a bit.
* patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabledv8.1.2145Bram Moolenaar2019-10-131-1/+2
| | | | | | Problem: Cannot map <C-H> when modifyOtherKeys is enabled. Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use only the first one when modifyOtherKeys has been detected.