Mercurial > vim
changeset 24424:ddcda424f882 v8.2.2752
patch 8.2.2752
Commit: https://github.com/vim/vim/commit/e8e307818495d1a5d821df9bd4bde83add0520e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 10 21:46:05 2021 +0200
patch 8.2.2752
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 10 Apr 2021 22:00:03 +0200 |
parents | a9b3ba4c6aae |
children | 6e8954e66929 |
files | src/typval.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/typval.c +++ b/src/typval.c @@ -367,10 +367,7 @@ check_for_nonempty_string_arg(typval_T * return FAIL; if (args[idx].vval.v_string == NULL || *args[idx].vval.v_string == NUL) { - if (idx >= 0) - semsg(_(e_non_empty_string_required_for_argument_nr), idx + 1); - else - emsg(_(e_non_empty_string_required)); + semsg(_(e_non_empty_string_required_for_argument_nr), idx + 1); return FAIL; } return OK;