Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/vim9.h +++ b/src/vim9.h @@ -142,8 +142,8 @@ typedef enum { ISN_PUT, // ":put", uses isn_arg.put - ISN_SILENT, // set msg_silent or emsg_silent if arg_number is non-zero - ISN_UNSILENT, // undo ISN_SILENT + ISN_CMDMOD, // set cmdmod + ISN_CMDMOD_REV, // undo ISN_CMDMOD ISN_SHUFFLE, // move item on stack up or down ISN_DROP // pop stack and discard value @@ -278,6 +278,11 @@ typedef struct { linenr_T put_lnum; // line number to put below } put_T; +// arguments to ISN_CMDMOD +typedef struct { + cmdmod_T *cf_cmdmod; // allocated +} cmod_T; + /* * Instruction */ @@ -314,6 +319,7 @@ struct isn_S { checklen_T checklen; shuffle_T shuffle; put_T put; + cmod_T cmdmod; } isn_arg; };