diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-05 17:20:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-05 17:20:24 +0000 |
commit | c7d5fc8622f03cca8d1a9a54d4703e8f0c9941d0 (patch) | |
tree | 3b42a9e1c84f60fd992e8e8834bf88ff886b27fa /src/vim9execute.c | |
parent | f661cee847d2c17652b0ad0d703d2e3ac8610265 (diff) | |
download | vim-git-c7d5fc8622f03cca8d1a9a54d4703e8f0c9941d0.tar.gz |
patch 8.2.3746: cannot disassemble function starting with "debug" or "profile"v8.2.3746
Problem: Cannot disassemble function starting with "debug" or "profile".
Solution: Check for white space following. (closes #9273)
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r-- | src/vim9execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c index 2908e55c7..adfb9207c 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -5904,12 +5904,12 @@ ex_disassemble(exarg_T *eap) int is_global = FALSE; compiletype_T compile_type = CT_NONE; - if (STRNCMP(arg, "profile", 7) == 0) + if (STRNCMP(arg, "profile", 7) == 0 && VIM_ISWHITE(arg[7])) { compile_type = CT_PROFILE; arg = skipwhite(arg + 7); } - else if (STRNCMP(arg, "debug", 5) == 0) + else if (STRNCMP(arg, "debug", 5) == 0 && VIM_ISWHITE(arg[5])) { compile_type = CT_DEBUG; arg = skipwhite(arg + 5); |