comparison src/message.c @ 14175:2ad722003b36 v8.1.0105

patch 8.1.0105: all tab stops are the same commit https://github.com/vim/vim/commit/04958cbaf25eea27eceedaa987adfb354ad5f7fd Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 23 19:23:02 2018 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Jun 2018 19:30:07 +0200
parents cb731d098241
children 1681178c4434
comparison
equal deleted inserted replaced
14174:d36eedd19166 14175:2ad722003b36
1829 attr = 0; 1829 attr = 0;
1830 c = *s++; 1830 c = *s++;
1831 if (c == TAB && (!list || lcs_tab1)) 1831 if (c == TAB && (!list || lcs_tab1))
1832 { 1832 {
1833 /* tab amount depends on current column */ 1833 /* tab amount depends on current column */
1834 #ifdef FEAT_VARTABS
1835 n_extra = tabstop_padding(col, curbuf->b_p_ts,
1836 curbuf->b_p_vts_array) - 1;
1837 #else
1834 n_extra = curbuf->b_p_ts - col % curbuf->b_p_ts - 1; 1838 n_extra = curbuf->b_p_ts - col % curbuf->b_p_ts - 1;
1839 #endif
1835 if (!list) 1840 if (!list)
1836 { 1841 {
1837 c = ' '; 1842 c = ' ';
1838 c_extra = ' '; 1843 c_extra = ' ';
1839 } 1844 }