Mirror of the Vim source from https://github.com/vim/vim
リビジョン | 205a26fab11655d086ce185525193d16f37d60b5 (tree) |
---|---|
日時 | 2008-01-05 05:25:44 |
作者 | vimboss |
コミッター | vimboss |
updated for version 7.1-203
@@ -507,12 +507,17 @@ | ||
507 | 507 | curwin->w_cursor.col = 0; |
508 | 508 | else if (curwin->w_cursor.col >= len) |
509 | 509 | { |
510 | - /* Allow cursor past end-of-line in Insert mode, restarting Insert | |
511 | - * mode or when in Visual mode and 'selection' isn't "old" */ | |
510 | + /* Allow cursor past end-of-line when: | |
511 | + * - in Insert mode or restarting Insert mode | |
512 | + * - in Visual mode and 'selection' isn't "old" | |
513 | + * - 'virtualedit' is set */ | |
512 | 514 | if ((State & INSERT) || restart_edit |
513 | 515 | #ifdef FEAT_VISUAL |
514 | 516 | || (VIsual_active && *p_sel != 'o') |
515 | 517 | #endif |
518 | +#ifdef FEAT_VIRTUALEDIT | |
519 | + || (ve_flags & VE_ONEMORE) | |
520 | +#endif | |
516 | 521 | || virtual_active()) |
517 | 522 | curwin->w_cursor.col = len; |
518 | 523 | else |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 203, | |
671 | +/**/ | |
670 | 672 | 202, |
671 | 673 | /**/ |
672 | 674 | 201, |