patch 9.1.0720: Wrong breakindentopt=list:-1 with multibyte or TABs
Problem: Wrong breakindentopt=list:-1 with multibyte chars or TABs in
text matched by 'formatlistpat' (John M Devin)
Solution: Use the width of the match text (zeertzjq)
fixes: #15634
closes: #15635
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/charset.c b/src/charset.c
index 399f258..e02f719 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -739,8 +739,8 @@
RET_WIN_BUF_CHARTABSIZE(curwin, curbuf, p, col)
}
-#ifdef FEAT_LINEBREAK
- static int
+#if defined(FEAT_LINEBREAK) || defined(PROTO)
+ int
win_chartabsize(win_T *wp, char_u *p, colnr_T col)
{
RET_WIN_BUF_CHARTABSIZE(wp, wp->w_buffer, p, col)