summaryrefslogtreecommitdiff
path: root/src/debugger.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-20 19:28:14 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-20 19:28:14 +0200
commit4f8f54280fa728b7d5a63b67d02b60a3b3dce543 (patch)
tree962b41838e72571485245ed05d17dab53e0b5bfd /src/debugger.c
parent0d5e1ec37fbe75e18acba6f650c59bf91063108c (diff)
downloadvim-git-4f8f54280fa728b7d5a63b67d02b60a3b3dce543.tar.gz
patch 8.2.3026: Vim9: cannot set breakpoint in compiled functionv8.2.3026
Problem: Vim9: cannot set breakpoint in compiled function. Solution: Check for breakpoint when calling a function.
Diffstat (limited to 'src/debugger.c')
-rw-r--r--src/debugger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debugger.c b/src/debugger.c
index b96846310..52a04907e 100644
--- a/src/debugger.c
+++ b/src/debugger.c
@@ -606,7 +606,7 @@ dbg_parsearg(
}
if (bp->dbg_type == DBG_FUNC)
- bp->dbg_name = vim_strsave(p);
+ bp->dbg_name = vim_strsave(STRNCMP(p, "g:", 2) == 0 ? p + 2 : p);
else if (here)
bp->dbg_name = vim_strsave(curbuf->b_ffname);
else if (bp->dbg_type == DBG_EXPR)