eval: diff_hlID() and hlID() return same id

This commit is contained in:
Jan Edmund Lazo
2019-03-30 02:27:37 -04:00
parent 1782550bfe
commit f772117b55
2 changed files with 5 additions and 1 deletions

View File

@@ -8008,7 +8008,7 @@ static void f_diff_hlID(typval_T *argvars, typval_T *rettv, FunPtr fptr)
hlID = HLF_CHD; // Changed line.
}
}
rettv->vval.v_number = hlID == (hlf_T)0 ? 0 : (int)hlID;
rettv->vval.v_number = hlID == (hlf_T)0 ? 0 : (int)(hlID + 1);
}
/*