From 04958cbaf25eea27eceedaa987adfb354ad5f7fd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 23 Jun 2018 19:23:02 +0200 Subject: patch 8.1.0105: all tab stops are the same Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes #2711) --- src/beval.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/beval.c') diff --git a/src/beval.c b/src/beval.c index 4ceddca19..74750a27d 100644 --- a/src/beval.c +++ b/src/beval.c @@ -124,6 +124,11 @@ get_beval_info( *lnump = lnum; *textp = lbuf; *colp = col; +#ifdef FEAT_VARTABS + if (beval->vts) + vim_free(beval->vts); + beval->vts = tabstop_copy(wp->w_buffer->b_p_vts_array); +#endif beval->ts = wp->w_buffer->b_p_ts; return OK; } -- cgit v1.2.1