diff options
author | VVKot <volodymyr.kot.ua@gmail.com> | 2021-02-13 19:51:49 +0000 |
---|---|---|
committer | VVKot <volodymyr.kot.ua@gmail.com> | 2021-03-28 08:37:03 +0100 |
commit | 3e55811acf2eb1c7f6d92cda8625a75e5d498c30 (patch) | |
tree | 09e64477bc46993f89c3f1f44460814b107bae5b /src/nvim/option.c | |
parent | 6752ac49682d63dfc7960e518ecbd6517c88392d (diff) | |
download | rneovim-3e55811acf2eb1c7f6d92cda8625a75e5d498c30.tar.gz rneovim-3e55811acf2eb1c7f6d92cda8625a75e5d498c30.tar.bz2 rneovim-3e55811acf2eb1c7f6d92cda8625a75e5d498c30.zip |
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
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |