From 82b14c143aa1e70d55509cc9fa408828e90c93de Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 10 Aug 2022 19:50:47 +0100 Subject: 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) --- src/textprop.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/textprop.c') diff --git a/src/textprop.c b/src/textprop.c index 45023e88d..f33edc211 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -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) -- cgit v1.2.1