diff options
author | Matthieu Coudron <mattator@gmail.com> | 2017-08-27 00:33:36 +0200 |
---|---|---|
committer | Matthieu Coudron <mattator@gmail.com> | 2017-09-30 11:43:26 +0900 |
commit | e3a2cca3878f44252eccdc1918cc8854145de860 (patch) | |
tree | b589f76c6c0e5a7a0519d2f01b6de68653f27507 /src/nvim/ui.c | |
parent | ba7277cfb4e2556f246446d06b53f3427f28130f (diff) | |
download | rneovim-e3a2cca3878f44252eccdc1918cc8854145de860.tar.gz rneovim-e3a2cca3878f44252eccdc1918cc8854145de860.tar.bz2 rneovim-e3a2cca3878f44252eccdc1918cc8854145de860.zip |
Increased test coverage for RGB and cterm
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 184ae56cf2..afe7a51d43 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -166,31 +166,6 @@ void ui_event(char *name, Array args) } } -/// Retrieves attribute description from its id -/// -/// @param attr_id attribute id -Dictionary get_attr_by_id(Integer attr_id, Error *err) -{ - HlAttrs attrs = HLATTRS_INIT; - Dictionary dic = ARRAY_DICT_INIT; - - if (attr_id == 0) { - goto end; - } - - attrentry_T *aep = syn_cterm_attr2entry((int)attr_id); - if (!aep) { - api_set_error(err, kErrorTypeException, - "Invalid attribute id %d", attr_id); - return dic; - } - - attrs = attrentry2hlattrs(aep, p_tgc); - -end: - return hlattrs2dict(attrs); -} - /// Converts an attrentry_T into an HlAttrs /// |