comparison src/eval.c @ 15464:3faa7cc8207c v8.1.0740

patch 8.1.0740: Tcl test fails commit https://github.com/vim/vim/commit/8309b0559da6e9a581a7816572594c90c2d7f942 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 13 16:46:22 2019 +0100 patch 8.1.0740: Tcl test fails Problem: Tcl test fails. Solution: When the argument is empty don't give an error, instead rely on the error reporting higher up.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jan 2019 17:00:06 +0100
parents 543cff56dd3f
children 435fcefd2c8e
comparison
equal deleted inserted replaced
15463:5f6adbb78253 15464:3faa7cc8207c
6460 *arg = skipwhite(p); 6460 *arg = skipwhite(p);
6461 return (int)STRLEN(temp_string); 6461 return (int)STRLEN(temp_string);
6462 } 6462 }
6463 6463
6464 len += get_id_len(arg); 6464 len += get_id_len(arg);
6465 if (len == 0 && verbose) 6465 // Only give an error when there is something, otherwise it will be
6466 // reported at a higher level.
6467 if (len == 0 && verbose && **arg != NUL)
6466 EMSG2(_(e_invexpr2), *arg); 6468 EMSG2(_(e_invexpr2), *arg);
6467 6469
6468 return len; 6470 return len;
6469 } 6471 }
6470 6472