comparison src/vim9compile.c @ 21210:44611891e22c v8.2.1156

patch 8.2.1156: Vim9: No error for invalid command in compiled function Commit: https://github.com/vim/vim/commit/002262f4dee452964190b0d022aa7443f602b288 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 8 17:47:57 2020 +0200 patch 8.2.1156: Vim9: No error for invalid command in compiled function Problem: Vim9: No error for invalid command in compiled function. Solution: Handle CMD_SIZE.
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 Jul 2020 18:00:05 +0200
parents 09377fd59b2e
children bcd08812cde3
comparison
equal deleted inserted replaced
21209:5ab01f8473b2 21210:44611891e22c
7139 case CMD_echoerr: 7139 case CMD_echoerr:
7140 line = compile_mult_expr(p, ea.cmdidx, &cctx); 7140 line = compile_mult_expr(p, ea.cmdidx, &cctx);
7141 break; 7141 break;
7142 7142
7143 // TODO: other commands with an expression argument 7143 // TODO: other commands with an expression argument
7144
7145 case CMD_SIZE:
7146 semsg(_("E476: Invalid command: %s"), ea.cmd);
7147 goto erret;
7144 7148
7145 default: 7149 default:
7146 // Not recognized, execute with do_cmdline_cmd(). 7150 // Not recognized, execute with do_cmdline_cmd().
7147 ea.arg = p; 7151 ea.arg = p;
7148 line = compile_exec(line, &ea, &cctx); 7152 line = compile_exec(line, &ea, &cctx);