Mercurial > vim
comparison src/eval.c @ 27193:fe3da8b63dfa v8.2.4125
patch 8.2.4125: completion tests fail
Commit: https://github.com/vim/vim/commit/b3d9ceed2bc96acb7a2388e138559df6282118af
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 17 21:13:28 2022 +0000
patch 8.2.4125: completion tests fail
Problem: Completion tests fail.
Solution: Disable error messages while dereferencing the function name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Jan 2022 22:15:03 +0100 |
parents | a10936038ec9 |
children | d4f254d02d7c |
comparison
equal
deleted
inserted
replaced
27192:b0432adbe58e | 27193:fe3da8b63dfa |
---|---|
707 funcexe.fe_lastline = curwin->w_cursor.lnum; | 707 funcexe.fe_lastline = curwin->w_cursor.lnum; |
708 funcexe.fe_evaluate = TRUE; | 708 funcexe.fe_evaluate = TRUE; |
709 | 709 |
710 // The name might be "import.Func" or "Funcref". | 710 // The name might be "import.Func" or "Funcref". |
711 arg = func; | 711 arg = func; |
712 ++emsg_off; | |
712 name = deref_function_name(&arg, &tofree, &EVALARG_EVALUATE, FALSE); | 713 name = deref_function_name(&arg, &tofree, &EVALARG_EVALUATE, FALSE); |
714 --emsg_off; | |
713 if (name == NULL) | 715 if (name == NULL) |
714 name = func; | 716 name = func; |
715 | 717 |
716 ret = call_func(name, -1, rettv, argc, argv, &funcexe); | 718 ret = call_func(name, -1, rettv, argc, argv, &funcexe); |
717 | 719 |