patch 8.1.0114: confusing variable name
Problem: Confusing variable name.
Solution: Rename new_ts to new_vts_array. Change zero to NULL.
diff --git a/src/option.c b/src/option.c
index d7d4117..1ba8a8c 100644
--- a/src/option.c
+++ b/src/option.c
@@ -12844,7 +12844,7 @@
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 @@
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;