Mirror of the Vim source from https://github.com/vim/vim
修訂 | a285f0cd8a462ff5cb17053fd457646f9d33573d (tree) |
---|---|
時間 | 2008-07-26 23:05:07 |
作者 | vimboss |
Commiter | vimboss |
updated for version 7.2b-022
@@ -8913,6 +8913,7 @@ | ||
8913 | 8913 | tasave_T tabuf; |
8914 | 8914 | int save_insertmode = p_im; |
8915 | 8915 | int save_finish_op = finish_op; |
8916 | + int save_opcount = opcount; | |
8916 | 8917 | #ifdef FEAT_MBYTE |
8917 | 8918 | char_u *arg = NULL; |
8918 | 8919 | int l; |
@@ -9040,6 +9041,7 @@ | ||
9040 | 9041 | restart_edit = save_restart_edit; |
9041 | 9042 | p_im = save_insertmode; |
9042 | 9043 | finish_op = save_finish_op; |
9044 | + opcount = save_opcount; | |
9043 | 9045 | msg_didout |= save_msg_didout; /* don't reset msg_didout now */ |
9044 | 9046 | |
9045 | 9047 | /* Restore the state (needed when called from a function executed for |
@@ -868,6 +868,7 @@ | ||
868 | 868 | * command interpreter. */ |
869 | 869 | |
870 | 870 | EXTERN int finish_op INIT(= FALSE);/* TRUE while an operator is pending */ |
871 | +EXTERN int opcount INIT(= 0); /* count for pending operator */ | |
871 | 872 | |
872 | 873 | /* |
873 | 874 | * ex mode (Q) state |
@@ -565,7 +565,6 @@ | ||
565 | 565 | oparg_T *oap; |
566 | 566 | int toplevel; /* TRUE when called from main() */ |
567 | 567 | { |
568 | - static long opcount = 0; /* ca.opcount saved here */ | |
569 | 568 | cmdarg_T ca; /* command arguments */ |
570 | 569 | int c; |
571 | 570 | int ctrl_w = FALSE; /* got CTRL-W command */ |
@@ -677,6 +677,8 @@ | ||
677 | 677 | static int included_patches[] = |
678 | 678 | { /* Add new patch number below this line */ |
679 | 679 | /**/ |
680 | + 22, | |
681 | +/**/ | |
680 | 682 | 21, |
681 | 683 | /**/ |
682 | 684 | 20, |