comparison src/ex_docmd.c @ 15636:6f1c7e9a6393 v8.1.0826

patch 8.1.0826: too many #ifdefs commit https://github.com/vim/vim/commit/29ddebef4038d2d2b3bc9d8d3b0109f4046d6fbf Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 26 17:28:26 2019 +0100 patch 8.1.0826: too many #ifdefs Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Jan 2019 17:30:15 +0100
parents 536dd2bc5ac9
children dc2bfda59f95
comparison
equal deleted inserted replaced
15635:c51d2a06f5f9 15636:6f1c7e9a6393
4648 */ 4648 */
4649 if (*cmd != '?') 4649 if (*cmd != '?')
4650 pos.col = MAXCOL; 4650 pos.col = MAXCOL;
4651 else 4651 else
4652 pos.col = 0; 4652 pos.col = 0;
4653 #ifdef FEAT_VIRTUALEDIT
4654 pos.coladd = 0; 4653 pos.coladd = 0;
4655 #endif
4656 if (searchit(curwin, curbuf, &pos, NULL, 4654 if (searchit(curwin, curbuf, &pos, NULL,
4657 *cmd == '?' ? BACKWARD : FORWARD, 4655 *cmd == '?' ? BACKWARD : FORWARD,
4658 (char_u *)"", 1L, SEARCH_MSG, 4656 (char_u *)"", 1L, SEARCH_MSG,
4659 i, (linenr_T)0, NULL, NULL) != FAIL) 4657 i, (linenr_T)0, NULL, NULL) != FAIL)
4660 lnum = pos.lnum; 4658 lnum = pos.lnum;
9419 oa.regname = eap->regname; 9417 oa.regname = eap->regname;
9420 oa.start.lnum = eap->line1; 9418 oa.start.lnum = eap->line1;
9421 oa.end.lnum = eap->line2; 9419 oa.end.lnum = eap->line2;
9422 oa.line_count = eap->line2 - eap->line1 + 1; 9420 oa.line_count = eap->line2 - eap->line1 + 1;
9423 oa.motion_type = MLINE; 9421 oa.motion_type = MLINE;
9424 #ifdef FEAT_VIRTUALEDIT
9425 virtual_op = FALSE; 9422 virtual_op = FALSE;
9426 #endif
9427 if (eap->cmdidx != CMD_yank) /* position cursor for undo */ 9423 if (eap->cmdidx != CMD_yank) /* position cursor for undo */
9428 { 9424 {
9429 setpcmark(); 9425 setpcmark();
9430 curwin->w_cursor.lnum = eap->line1; 9426 curwin->w_cursor.lnum = eap->line1;
9431 beginline(BL_SOL | BL_FIX); 9427 beginline(BL_SOL | BL_FIX);
9458 else 9454 else
9459 oa.op_type = OP_LSHIFT; 9455 oa.op_type = OP_LSHIFT;
9460 op_shift(&oa, FALSE, eap->amount); 9456 op_shift(&oa, FALSE, eap->amount);
9461 break; 9457 break;
9462 } 9458 }
9463 #ifdef FEAT_VIRTUALEDIT
9464 virtual_op = MAYBE; 9459 virtual_op = MAYBE;
9465 #endif
9466 ex_may_print(eap); 9460 ex_may_print(eap);
9467 } 9461 }
9468 9462
9469 /* 9463 /*
9470 * ":put". 9464 * ":put".