comparison src/evalfunc.c @ 32828:656c54d276d5 v9.0.1727

patch 9.0.1727: minor problems with the teapot Commit: https://github.com/vim/vim/commit/b0efa49ed179d3aa1fa0358d4c3c6d35a0efb291 Author: Sean Dewar <seandewar@users.noreply.github.com> Date: Sat Jul 8 10:35:19 2023 +0100 patch 9.0.1727: minor problems with the teapot Problem: minor problems with the teapot() Solution: remove the null check, update documentation Update the builtin-function-list entry. (It implicitly returns 0, but such functions usually use "none") Also, tv_get_string_strict() can not return NULL, so remove that check closes: #12647 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Aug 2023 23:00:04 +0200
parents 705d0e1329a5
children 6e53cf9745f4
comparison
equal deleted inserted replaced
32827:46ff1944e02d 32828:656c54d276d5
3934 if (argvars[0].v_type != VAR_UNKNOWN) 3934 if (argvars[0].v_type != VAR_UNKNOWN)
3935 { 3935 {
3936 if (argvars[0].v_type == VAR_STRING) 3936 if (argvars[0].v_type == VAR_STRING)
3937 { 3937 {
3938 char_u *s = tv_get_string_strict(&argvars[0]); 3938 char_u *s = tv_get_string_strict(&argvars[0]);
3939 if (s == NULL || *skipwhite(s) == NUL) 3939 if (*skipwhite(s) == NUL)
3940 return; 3940 return;
3941 } 3941 }
3942 3942
3943 int err = FALSE; 3943 int err = FALSE;
3944 int do_503 = eval_expr_to_bool(&argvars[0], &err); 3944 int do_503 = eval_expr_to_bool(&argvars[0], &err);