From 3e55811acf2eb1c7f6d92cda8625a75e5d498c30 Mon Sep 17 00:00:00 2001 From: VVKot Date: Sat, 13 Feb 2021 19:51:49 +0000 Subject: vim-patch:8.1.0114: confusing variable name Problem: Confusing variable name. Solution: Rename new_ts to new_vts_array. Change zero to NULL. https://github.com/vim/vim/commit/0119a59ffdfb21cf1c0a56e7ed6105e875150163 --- src/nvim/option.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/option.c') diff --git a/src/nvim/option.c b/src/nvim/option.c index ad4d12ff7b..fc3771f42b 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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) { -- cgit