mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
vim-patch:8.1.0114: confusing variable name
Problem: Confusing variable name.
Solution: Rename new_ts to new_vts_array. Change zero to NULL.
0119a59ffd
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user