diff options
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/textprop.c b/src/textprop.c index 9a9544c503..86b0dbf883 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -238,9 +238,10 @@ prop_add_one( goto theend; ((char_u **)gap->ga_data)[gap->ga_len++] = text; - // change any Tab to a Space to make it simpler to compute the size + // change any control character (Tab, Newline, etc.) to a Space to make + // it simpler to compute the size for (p = text; *p != NUL; MB_PTR_ADV(p)) - if (*p == TAB) + if (*p < ' ') *p = ' '; text = NULL; } @@ -1542,6 +1543,15 @@ prop_type_set(typval_T *argvars, int add) prop->pt_flags &= ~PT_FLAG_COMBINE; } + di = dict_find(dict, (char_u *)"override", -1); + if (di != NULL) + { + if (tv_get_bool(&di->di_tv)) + prop->pt_flags |= PT_FLAG_OVERRIDE; + else + prop->pt_flags &= ~PT_FLAG_OVERRIDE; + } + di = dict_find(dict, (char_u *)"priority", -1); if (di != NULL) prop->pt_priority = tv_get_number(&di->di_tv); |