Mercurial > vim
comparison src/misc2.c @ 27140:a9eeb18e749c v8.2.4099
patch 8.2.4099: Vim9: cannot use Vim9 syntax in mapping
Commit: https://github.com/vim/vim/commit/e32c3c462ce9b3163a4a4bffd985897910885d29
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 15 18:26:04 2022 +0000
patch 8.2.4099: Vim9: cannot use Vim9 syntax in mapping
Problem: Vim9: cannot use Vim9 syntax in mapping.
Solution: Add <ScriptCmd> to use the script context for a command.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jan 2022 19:30:04 +0100 |
parents | 268f6a3511df |
children | f9f1e76957a6 |
comparison
equal
deleted
inserted
replaced
27139:fd4193f6d59e | 27140:a9eeb18e749c |
---|---|
1055 #endif | 1055 #endif |
1056 {K_PLUG, (char_u *)"Plug"}, | 1056 {K_PLUG, (char_u *)"Plug"}, |
1057 {K_CURSORHOLD, (char_u *)"CursorHold"}, | 1057 {K_CURSORHOLD, (char_u *)"CursorHold"}, |
1058 {K_IGNORE, (char_u *)"Ignore"}, | 1058 {K_IGNORE, (char_u *)"Ignore"}, |
1059 {K_COMMAND, (char_u *)"Cmd"}, | 1059 {K_COMMAND, (char_u *)"Cmd"}, |
1060 {K_SCRIPT_COMMAND, (char_u *)"ScriptCmd"}, | |
1060 {K_FOCUSGAINED, (char_u *)"FocusGained"}, | 1061 {K_FOCUSGAINED, (char_u *)"FocusGained"}, |
1061 {K_FOCUSLOST, (char_u *)"FocusLost"}, | 1062 {K_FOCUSLOST, (char_u *)"FocusLost"}, |
1062 {0, NULL} | 1063 {0, NULL} |
1063 // NOTE: When adding a long name update MAX_KEY_NAME_LEN. | 1064 // NOTE: When adding a long name update MAX_KEY_NAME_LEN. |
1064 }; | 1065 }; |