From 0119a59ffdfb21cf1c0a56e7ed6105e875150163 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 24 Jun 2018 23:53:28 +0200 Subject: patch 8.1.0114: confusing variable name Problem: Confusing variable name. Solution: Rename new_ts to new_vts_array. Change zero to NULL. --- src/option.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/option.c') diff --git a/src/option.c b/src/option.c index d7d411772..1ba8a8c2e 100644 --- a/src/option.c +++ b/src/option.c @@ -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; -- cgit v1.2.1