mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.2012: more functions can be used as methods
Problem: More functions can be used as methods. Solution: Make terminal functions usable as a method. Fix term_getattr().
This commit is contained in:
@@ -5055,6 +5055,8 @@ f_term_getattr(typval_T *argvars, typval_T *rettv)
|
||||
if (name == NULL)
|
||||
return;
|
||||
|
||||
if (attr > HL_ALL)
|
||||
attr = syn_attr2attr(attr);
|
||||
for (i = 0; i < sizeof(attrs)/sizeof(attrs[0]); ++i)
|
||||
if (STRCMP(name, attrs[i].name) == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user