| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
| |
... for when `ns=0`.
Also update the documentation of nvim_set_hl to clarify the set
behaviour.
Fixes #17478
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: when accessing `nvim_set_hl` from Lua, empty tables are converted
to empty lists, not dictionaries, resulting in an error for
:lua vim.api.nvim_set_hl(0, "Comment", { cterm = {} })
Workaround: add an empty array as a special case when checking
`dict->cterm.type` and just set `cterm_mask_provided`.
(Proper solution: handle this in `gen_api_dispatch.lua`.)
|
| |
|
|
|
|
|
|
| |
- and reduce heap allocations
Fixes #17420
|
| |
|
|
|
|
| |
Passing ns=0 to nvim_set_hl will alter the `:highlight` namespace.
|
| |
|
| |
|
| |
|
|
|
| |
* improve error message to make it actionable
|
|
|
|
|
|
| |
54ce101 changed the way undo entries are created when adding decorations.
This creates all sorts of problems.This change fixes the problem by
reverting to the previous behavior.
|
|
|
|
|
|
|
|
|
| |
Problem: When Normal highlight group defines ctermfg/bg, but other
highlight group lacks ctermfg/bg, nvim_get_hl_by_id(hl_id,
v:false) returns -1 for the missing ctermfg/bg instead of just
omitting it.
Solution: checking for -1 in hlattrs2dict()
fix #11680
|
|
|
|
| |
[skip.lint]
|
|
|
|
|
|
| |
fix #3436
Includes:
vim-patch:8.0.1038: strike-through text not supported
|
| |
|
|
|
|
| |
closes #8054
|
|
|
|
|
| |
- test all properties
- test failure modes
|
| |
|
| |
|
| |
|
|
...in order to retrieve highlights.
Added test/functional/api/highlight_spec.lua
HL_NORMAL is not really a good name, since it's more like an empty attribute than the normal's one.
If one pays attention, syn_cterm_attr2entry is never called with attr=0 because it's always special cased before.
I suggest in subsequent PRs we remove the ATTR_OFF and just insert an EMPTY ATTR/RESET_ATTR/UNINITIALIZED for id 0.
|