forked from aniani/vim
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>
This commit is contained in:
committed by
Christian Brabandt
parent
66f65a46c5
commit
61a6ac4d00
@@ -739,8 +739,8 @@ chartabsize(char_u *p, colnr_T col)
|
||||
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)
|
||||
|
Reference in New Issue
Block a user