comparison src/ex_docmd.c @ 23342:13572a262b15 v8.2.2214

patch 8.2.2214: ":e#" does not give a warning for missing white space Commit: https://github.com/vim/vim/commit/f8103f274e828bdc2dcbc4d857f166f25e0a855e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 25 17:36:27 2020 +0100 patch 8.2.2214: ":e#" does not give a warning for missing white space Problem: ":e#" does not give a warning for missing white space. Solution: Adjust the check for white space. (closes https://github.com/vim/vim/issues/7545)
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Dec 2020 17:45:03 +0100
parents a84e7abb0c92
children 2060f53b7c17
comparison
equal deleted inserted replaced
23341:5e6a630d9bc1 23342:13572a262b15
3530 if (eap->cmdidx == CMD_final && p - eap->cmd == 4) 3530 if (eap->cmdidx == CMD_final && p - eap->cmd == 4)
3531 eap->cmdidx = CMD_finally; 3531 eap->cmdidx = CMD_finally;
3532 3532
3533 #ifdef FEAT_EVAL 3533 #ifdef FEAT_EVAL
3534 if (eap->cmdidx != CMD_SIZE && in_vim9script() 3534 if (eap->cmdidx != CMD_SIZE && in_vim9script()
3535 && !IS_WHITE_OR_NUL(*p) && !ends_excmd(*p) && *p != '!' 3535 && !IS_WHITE_OR_NUL(*p) && *p != '\n' && *p != '!'
3536 && (cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0) 3536 && (cmdnames[eap->cmdidx].cmd_argt & EX_NONWHITE_OK) == 0)
3537 { 3537 {
3538 semsg(_(e_command_not_followed_by_white_space_str), eap->cmd); 3538 semsg(_(e_command_not_followed_by_white_space_str), eap->cmd);
3539 eap->cmdidx = CMD_SIZE; 3539 eap->cmdidx = CMD_SIZE;
3540 } 3540 }