comparison 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
comparison
equal deleted inserted replaced
3603:d2c707d39aa1 3604:b2763055bdf2
594 int i; 594 int i;
595 linenr_T best_lnum = 0; 595 linenr_T best_lnum = 0;
596 garray_T *gap; 596 garray_T *gap;
597 597
598 gap = &dbg_breakp; 598 gap = &dbg_breakp;
599 if (eap->cmdidx == CMD_profdel)
600 {
599 #ifdef FEAT_PROFILE 601 #ifdef FEAT_PROFILE
600 if (eap->cmdidx == CMD_profdel)
601 gap = &prof_ga; 602 gap = &prof_ga;
602 #endif 603 #else
604 ex_ni(eap);
605 return;
606 #endif
607 }
603 608
604 if (vim_isdigit(*eap->arg)) 609 if (vim_isdigit(*eap->arg))
605 { 610 {
606 /* ":breakdel {nr}" */ 611 /* ":breakdel {nr}" */
607 nr = atol((char *)eap->arg); 612 nr = atol((char *)eap->arg);