diff src/ex_cmds2.c @ 3604:b2763055bdf2 v7.3.562

updated for version 7.3.562 Problem: ":profdel" should not work when the +profile feature is disabled. Solution: Call ex_ni(). (Yasuhiro Matsumoto)
author Bram Moolenaar <bram@vim.org>
date Wed, 20 Jun 2012 15:48:57 +0200
parents e83c5dcea112
children 4f1c511e71f8
line wrap: on
line diff
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -596,10 +596,15 @@ ex_breakdel(eap)
     garray_T	*gap;
 
     gap = &dbg_breakp;
+    if (eap->cmdidx == CMD_profdel)
+    {
 #ifdef FEAT_PROFILE
-    if (eap->cmdidx == CMD_profdel)
 	gap = &prof_ga;
+#else
+	ex_ni(eap);
+	return;
 #endif
+    }
 
     if (vim_isdigit(*eap->arg))
     {