Mercurial > vim
comparison src/vim9.h @ 22703:f2bfee4ac356 v8.2.1900
patch 8.2.1900: Vim9: command modifiers do not work
Commit: https://github.com/vim/vim/commit/02194d2bd54eacd0b7b9a017a3fe1702ecb80971
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 24 23:08:38 2020 +0200
patch 8.2.1900: Vim9: command modifiers do not work
Problem: Vim9: command modifiers do not work.
Solution: Make most command modifiers work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Oct 2020 23:15:04 +0200 |
parents | dda110a14be4 |
children | 4c97c0747017 |
comparison
equal
deleted
inserted
replaced
22702:81d7d3860786 | 22703:f2bfee4ac356 |
---|---|
140 ISN_CHECKTYPE, // check value type is isn_arg.type.tc_type | 140 ISN_CHECKTYPE, // check value type is isn_arg.type.tc_type |
141 ISN_CHECKLEN, // check list length is isn_arg.checklen.cl_min_len | 141 ISN_CHECKLEN, // check list length is isn_arg.checklen.cl_min_len |
142 | 142 |
143 ISN_PUT, // ":put", uses isn_arg.put | 143 ISN_PUT, // ":put", uses isn_arg.put |
144 | 144 |
145 ISN_SILENT, // set msg_silent or emsg_silent if arg_number is non-zero | 145 ISN_CMDMOD, // set cmdmod |
146 ISN_UNSILENT, // undo ISN_SILENT | 146 ISN_CMDMOD_REV, // undo ISN_CMDMOD |
147 | 147 |
148 ISN_SHUFFLE, // move item on stack up or down | 148 ISN_SHUFFLE, // move item on stack up or down |
149 ISN_DROP // pop stack and discard value | 149 ISN_DROP // pop stack and discard value |
150 } isntype_T; | 150 } isntype_T; |
151 | 151 |
275 // arguments to ISN_PUT | 275 // arguments to ISN_PUT |
276 typedef struct { | 276 typedef struct { |
277 int put_regname; // register, can be NUL | 277 int put_regname; // register, can be NUL |
278 linenr_T put_lnum; // line number to put below | 278 linenr_T put_lnum; // line number to put below |
279 } put_T; | 279 } put_T; |
280 | |
281 // arguments to ISN_CMDMOD | |
282 typedef struct { | |
283 cmdmod_T *cf_cmdmod; // allocated | |
284 } cmod_T; | |
280 | 285 |
281 /* | 286 /* |
282 * Instruction | 287 * Instruction |
283 */ | 288 */ |
284 struct isn_S { | 289 struct isn_S { |
312 funcref_T funcref; | 317 funcref_T funcref; |
313 newfunc_T newfunc; | 318 newfunc_T newfunc; |
314 checklen_T checklen; | 319 checklen_T checklen; |
315 shuffle_T shuffle; | 320 shuffle_T shuffle; |
316 put_T put; | 321 put_T put; |
322 cmod_T cmdmod; | |
317 } isn_arg; | 323 } isn_arg; |
318 }; | 324 }; |
319 | 325 |
320 /* | 326 /* |
321 * Info about a function defined with :def. Used in "def_functions". | 327 * Info about a function defined with :def. Used in "def_functions". |