From 34f8117dec685ace52cd9e578e2729db278163fc Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 16 Feb 2022 12:16:19 +0000 Subject: patch 8.2.4397: crash when using many composing characters in error message Problem: Crash when using many composing characters in error message. Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv(). --- src/testing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testing.c') diff --git a/src/testing.c b/src/testing.c index 448c01c1e..48ba14d2c 100644 --- a/src/testing.c +++ b/src/testing.c @@ -101,7 +101,7 @@ ga_concat_shorten_esc(garray_T *gap, char_u *str) { same_len = 1; s = p; - c = mb_ptr2char_adv(&s); + c = mb_cptr2char_adv(&s); clen = s - p; while (*s != NUL && c == mb_ptr2char(s)) { -- cgit v1.2.1