Mercurial > vim
comparison src/indent.c @ 28809:d0241e74bfdb v8.2.4928
patch 8.2.4928: various white space and cosmetic mistakes
Commit: https://github.com/vim/vim/commit/6ed545e79735f23ff8e650bc2f0967e5a0baedc9
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 9 20:09:23 2022 +0100
patch 8.2.4928: various white space and cosmetic mistakes
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 May 2022 21:15:04 +0200 |
parents | d770568e6c98 |
children | 948877671c54 |
comparison
equal
deleted
inserted
replaced
28808:0f0fed554cdc | 28809:d0241e74bfdb |
---|---|
159 tabstop_start(colnr_T col, int ts, int *vts) | 159 tabstop_start(colnr_T col, int ts, int *vts) |
160 { | 160 { |
161 int tabcount; | 161 int tabcount; |
162 colnr_T tabcol = 0; | 162 colnr_T tabcol = 0; |
163 int t; | 163 int t; |
164 int excess; | 164 int excess; |
165 | 165 |
166 if (vts == NULL || vts[0] == 0) | 166 if (vts == NULL || vts[0] == 0) |
167 return (col / ts) * ts; | 167 return (col / ts) * ts; |
168 | 168 |
169 tabcount = vts[0]; | 169 tabcount = vts[0]; |
1802 if (tabstop_count(curbuf->b_p_vts_array) == 0 | 1802 if (tabstop_count(curbuf->b_p_vts_array) == 0 |
1803 && tabstop_count(new_vts_array) == 1 | 1803 && tabstop_count(new_vts_array) == 1 |
1804 && curbuf->b_p_ts == tabstop_first(new_vts_array)) | 1804 && curbuf->b_p_ts == tabstop_first(new_vts_array)) |
1805 ; // not changed | 1805 ; // not changed |
1806 else if (tabstop_count(curbuf->b_p_vts_array) > 0 | 1806 else if (tabstop_count(curbuf->b_p_vts_array) > 0 |
1807 && tabstop_eq(curbuf->b_p_vts_array, new_vts_array)) | 1807 && tabstop_eq(curbuf->b_p_vts_array, new_vts_array)) |
1808 ; // not changed | 1808 ; // not changed |
1809 else | 1809 else |
1810 redraw_curbuf_later(NOT_VALID); | 1810 redraw_curbuf_later(NOT_VALID); |
1811 #else | 1811 #else |
1812 if (curbuf->b_p_ts != new_ts) | 1812 if (curbuf->b_p_ts != new_ts) |