vim-patch:8.1.0114: confusing variable name

Problem:    Confusing variable name.
Solution:   Rename new_ts to new_vts_array.  Change zero to NULL.
0119a59ffd
This commit is contained in:
VVKot
2021-02-13 19:51:49 +00:00
parent 6752ac4968
commit 3e55811acf
2 changed files with 18 additions and 19 deletions

View File

@@ -7168,7 +7168,7 @@ int tabstop_at(colnr_T col, long ts, long *vts)
int t;
int tab_size = 0;
if (vts == 0 || vts[0] == 0) {
if (vts == NULL || vts[0] == 0) {
return (int)ts;
}
@@ -7195,7 +7195,7 @@ colnr_T tabstop_start(colnr_T col, long ts, long *vts)
int t;
int excess;
if (vts == 0 || vts[0] == 0) {
if (vts == NULL || vts[0] == 0) {
return (col / (int)ts) * (int)ts;
}
@@ -7226,7 +7226,7 @@ void tabstop_fromto(colnr_T start_col,
int tabcount;
int t;
if (vts == 0 || vts[0] == 0) {
if (vts == NULL || vts[0] == 0) {
int tabs = 0;
int initspc = (int)ts - (start_col % (int)ts);
if (spaces >= initspc) {