comparison src/userfunc.c @ 26990:4b8d836db103 v8.2.4024

patch 8.2.4024: confusing error message if imported name is used directly Commit: https://github.com/vim/vim/commit/32884ad753ffb462d27998beb50678888209075f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 7 12:45:29 2022 +0000 patch 8.2.4024: confusing error message if imported name is used directly Problem: Confusing error message if imported name is used directly. Solution: Give a better error message.
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Jan 2022 14:00:04 +0100
parents 8796f1384750
children cf5b5e95f62b
comparison
equal deleted inserted replaced
26989:e6c75e80cb49 26990:4b8d836db103
5168 } 5168 }
5169 if (has_watchexpr()) 5169 if (has_watchexpr())
5170 dbg_check_breakpoint(eap); 5170 dbg_check_breakpoint(eap);
5171 5171
5172 // Handle a function returning a Funcref, Dictionary or List. 5172 // Handle a function returning a Funcref, Dictionary or List.
5173 if (handle_subscript(&arg, &rettv, 5173 if (handle_subscript(&arg, NULL, &rettv,
5174 eap->skip ? NULL : &EVALARG_EVALUATE, TRUE) == FAIL) 5174 eap->skip ? NULL : &EVALARG_EVALUATE, TRUE) == FAIL)
5175 { 5175 {
5176 failed = TRUE; 5176 failed = TRUE;
5177 break; 5177 break;
5178 } 5178 }