aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/debugger.c')
-rw-r--r--src/nvim/debugger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 9bd2238c25..2ed8beaafb 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -550,7 +550,7 @@ static int dbg_parsearg(char *arg, garray_T *gap)
}
if (bp->dbg_type == DBG_FUNC) {
- bp->dbg_name = xstrdup(p);
+ bp->dbg_name = xstrdup(strncmp(p, "g:", 2) == 0 ? p + 2 : p);
} else if (here) {
bp->dbg_name = xstrdup(curbuf->b_ffname);
} else if (bp->dbg_type == DBG_EXPR) {