Mercurial > vim
comparison src/vim9compile.c @ 21255:4be91a7eafb2 v8.2.1178
patch 8.2.1178: Vim9: filter function recognized as command modifier
Commit: https://github.com/vim/vim/commit/b074e8b8d4d3cefefc675dfaf3982d388ee07772
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 11 13:40:45 2020 +0200
patch 8.2.1178: Vim9: filter function recognized as command modifier
Problem: Vim9: filter function recognized as command modifier, leading to a
crash.
Solution: Clear cmdmod after freeing items. Do not recognize a command
modifier followed by non-white space. (closes #6434)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 11 Jul 2020 13:45:04 +0200 |
parents | d1215fcdbca8 |
children | 6a4806e326dd |
comparison
equal
deleted
inserted
replaced
21254:44f3da90b7bc | 21255:4be91a7eafb2 |
---|---|
6961 line = (char_u *)""; | 6961 line = (char_u *)""; |
6962 continue; | 6962 continue; |
6963 } | 6963 } |
6964 // TODO: use modifiers in the command | 6964 // TODO: use modifiers in the command |
6965 undo_cmdmod(&ea, save_msg_scroll); | 6965 undo_cmdmod(&ea, save_msg_scroll); |
6966 CLEAR_FIELD(cmdmod); | |
6966 | 6967 |
6967 // Skip ":call" to get to the function name. | 6968 // Skip ":call" to get to the function name. |
6968 if (checkforcmd(&ea.cmd, "call", 3)) | 6969 if (checkforcmd(&ea.cmd, "call", 3)) |
6969 ea.cmd = skipwhite(ea.cmd); | 6970 ea.cmd = skipwhite(ea.cmd); |
6970 | 6971 |