summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 6b12c4245..5bc824255 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -596,10 +596,15 @@ ex_breakdel(eap)
garray_T *gap;
gap = &dbg_breakp;
-#ifdef FEAT_PROFILE
if (eap->cmdidx == CMD_profdel)
+ {
+#ifdef FEAT_PROFILE
gap = &prof_ga;
+#else
+ ex_ni(eap);
+ return;
#endif
+ }
if (vim_isdigit(*eap->arg))
{