mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0489: using "end_lnum" with virtual text causes problems
Problem: Using "end_lnum" with virtual text causes problems. Solution: Disallow using "end_lnum" with virtual text. (closes #11151) Also disallow "end_col" and "length".
This commit is contained in:
@@ -488,6 +488,14 @@ prop_add_common(
|
||||
|
||||
if (dict_has_key(dict, "text"))
|
||||
{
|
||||
if (dict_has_key(dict, "length")
|
||||
|| dict_has_key(dict, "end_col")
|
||||
|| dict_has_key(dict, "end_lnum"))
|
||||
{
|
||||
emsg(_(e_cannot_use_length_endcol_and_endlnum_with_text));
|
||||
goto theend;
|
||||
}
|
||||
|
||||
text = dict_get_string(dict, "text", TRUE);
|
||||
if (text == NULL)
|
||||
goto theend;
|
||||
|
Reference in New Issue
Block a user