0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 9.0.0188: strange effects when using "text_align" with non-zero column

Problem:    Strange effects when using virtual text with "text_align" and
            non-zero column. (Martin Tournoij)
Solution:   Give an error. (closes #10888)
This commit is contained in:
Bram Moolenaar
2022-08-10 19:50:47 +01:00
parent 96bde99bf8
commit 82b14c143a
4 changed files with 11 additions and 0 deletions

View File

@@ -488,6 +488,11 @@ prop_add_common(
if (p == NULL)
goto theend;
if (start_col != 0)
{
emsg(_(e_can_only_use_text_align_when_column_is_zero));
goto theend;
}
if (STRCMP(p, "right") == 0)
flags |= TP_FLAG_ALIGN_RIGHT;
else if (STRCMP(p, "below") == 0)