1
0
forked from aniani/vim

patch 8.1.0114: confusing variable name

Problem:    Confusing variable name.
Solution:   Rename new_ts to new_vts_array.  Change zero to NULL.
This commit is contained in:
Bram Moolenaar
2018-06-24 23:53:28 +02:00
parent 675e8d6adb
commit 0119a59ffd
3 changed files with 20 additions and 18 deletions

View File

@@ -12844,7 +12844,7 @@ tabstop_start(colnr_T col, int ts, int *vts)
int t;
int excess;
if (vts == 0 || vts[0] == 0)
if (vts == NULL || vts[0] == 0)
return (col / ts) * ts;
tabcount = vts[0];
@@ -12878,10 +12878,11 @@ tabstop_fromto(
int tabcount;
int t;
if (vts == 0 || vts[0] == 0)
if (vts == NULL || vts[0] == 0)
{
int tabs = 0;
int initspc = ts - (start_col % ts);
if (spaces >= initspc)
{
spaces -= initspc;