mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
eval: Fix position of buf declaration
This commit is contained in:
parent
1bc0800787
commit
c5010c98ae
@ -21048,8 +21048,8 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars,
|
|||||||
char *s = tofree;
|
char *s = tofree;
|
||||||
emsg_off--;
|
emsg_off--;
|
||||||
if (s != NULL) {
|
if (s != NULL) {
|
||||||
if (vim_strsize((char_u *)s) > MSG_BUF_CLEN) {
|
|
||||||
char buf[MSG_BUF_LEN];
|
char buf[MSG_BUF_LEN];
|
||||||
|
if (vim_strsize((char_u *)s) > MSG_BUF_CLEN) {
|
||||||
trunc_string((char_u *)s, (char_u *)buf, MSG_BUF_CLEN,
|
trunc_string((char_u *)s, (char_u *)buf, MSG_BUF_CLEN,
|
||||||
sizeof(buf));
|
sizeof(buf));
|
||||||
s = buf;
|
s = buf;
|
||||||
|
Loading…
Reference in New Issue
Block a user