commit | 38bdbd6c6f39e5bffad22ec956fa1383e04fa1ae | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jun 20 15:48:57 2012 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jun 20 15:48:57 2012 +0200 |
tree | 75adfdfd7ee167668dfb97e1daabc3ddd15314aa | |
parent | 5e1a0a9a65b221d376a3ab85d06d918e651dd123 [diff] [blame] |
updated for version 7.3.562 Problem: ":profdel" should not work when the +profile feature is disabled. Solution: Call ex_ni(). (Yasuhiro Matsumoto)
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 6b12c42..5bc8242 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c
@@ -596,10 +596,15 @@ 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)) {