Mercurial > vim
diff src/option.c @ 14194:6fbb8dfb3389 v8.1.0114
patch 8.1.0114: confusing variable name
commit https://github.com/vim/vim/commit/0119a59ffdfb21cf1c0a56e7ed6105e875150163
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 24 23:53:28 2018 +0200
patch 8.1.0114: confusing variable name
Problem: Confusing variable name.
Solution: Rename new_ts to new_vts_array. Change zero to NULL.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 25 Jun 2018 00:00:07 +0200 |
parents | ab64a4fb5edd |
children | 2bebc49116fd |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -12844,7 +12844,7 @@ tabstop_start(colnr_T col, int ts, int * 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;