comparison src/hardcopy.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 873542706b0b
children 27b9a84395b5
comparison
equal deleted inserted replaced
14174:d36eedd19166 14175:2ad722003b36
913 * Appropriately expand any tabs to spaces. 913 * Appropriately expand any tabs to spaces.
914 */ 914 */
915 if (line[col] == TAB || tab_spaces != 0) 915 if (line[col] == TAB || tab_spaces != 0)
916 { 916 {
917 if (tab_spaces == 0) 917 if (tab_spaces == 0)
918 #ifdef FEAT_VARTABS
919 tab_spaces = tabstop_padding(print_pos, curbuf->b_p_ts,
920 curbuf->b_p_vts_array);
921 #else
918 tab_spaces = (int)(curbuf->b_p_ts - (print_pos % curbuf->b_p_ts)); 922 tab_spaces = (int)(curbuf->b_p_ts - (print_pos % curbuf->b_p_ts));
923 #endif
919 924
920 while (tab_spaces > 0) 925 while (tab_spaces > 0)
921 { 926 {
922 need_break = mch_print_text_out((char_u *)" ", 1); 927 need_break = mch_print_text_out((char_u *)" ", 1);
923 print_pos++; 928 print_pos++;