From e25ebf6b4f1342719b77ced3cc79c113f3dcb41e Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Sun, 21 Mar 2021 12:06:23 -0400 Subject: Fix neovim tag bugs uncovered by vim-8.2.0088, but not related to the patch. Specifically: - settagstack()'s e_listreq is in the wrong place - in :ltag, vim_strncpy -> xstrlcpy length parameter is different xstrlcpy's length includes the null terminator (so add one) - in :ltag, STRNCAT -> xstrlcat takes dest size, not number to copy use snprintf instead --- src/nvim/eval/funcs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/nvim/eval/funcs.c') diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index 9edf5c8f7e..5f08b53e50 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -8809,8 +8809,6 @@ static void f_settagstack(typval_T *argvars, typval_T *rettv, FunPtr fptr) if (set_tagstack(wp, d, action) == OK) { rettv->vval.v_number = 0; - } else { - EMSG(_(e_listreq)); } } -- cgit