comparison src/structs.h @ 5649:beb037a6c270 v7.4.171

updated for version 7.4.171 Problem: Redo does not set v:count and v:count1. Solution: Use a separate buffer for redo, so that we can set the counts when performing redo.
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Feb 2014 15:10:43 +0100
parents 853a76c7fded
children 4d12112c5efa
comparison
equal deleted inserted replaced
5648:e2140f8c3b20 5649:beb037a6c270
469 #define nt_old_bnum nt_hashitem.mhi_key /* old, negative, number */ 469 #define nt_old_bnum nt_hashitem.mhi_key /* old, negative, number */
470 470
471 blocknr_T nt_new_bnum; /* new, positive, number */ 471 blocknr_T nt_new_bnum; /* new, positive, number */
472 }; 472 };
473 473
474
475 typedef struct buffblock buffblock_T;
476 typedef struct buffheader buffheader_T;
477
474 /* 478 /*
475 * structure used to store one block of the stuff/redo/recording buffers 479 * structure used to store one block of the stuff/redo/recording buffers
476 */ 480 */
477 struct buffblock 481 struct buffblock
478 { 482 {
479 struct buffblock *b_next; /* pointer to next buffblock */ 483 buffblock_T *b_next; /* pointer to next buffblock */
480 char_u b_str[1]; /* contents (actually longer) */ 484 char_u b_str[1]; /* contents (actually longer) */
481 }; 485 };
482 486
483 /* 487 /*
484 * header used for the stuff buffer and the redo buffer 488 * header used for the stuff buffer and the redo buffer
485 */ 489 */
486 struct buffheader 490 struct buffheader
487 { 491 {
488 struct buffblock bh_first; /* first (dummy) block of list */ 492 buffblock_T bh_first; /* first (dummy) block of list */
489 struct buffblock *bh_curr; /* buffblock for appending */ 493 buffblock_T *bh_curr; /* buffblock for appending */
490 int bh_index; /* index for reading */ 494 int bh_index; /* index for reading */
491 int bh_space; /* space in bh_curr for appending */ 495 int bh_space; /* space in bh_curr for appending */
492 }; 496 };
493 497
494 /* 498 /*
495 * used for completion on the command line 499 * used for completion on the command line
496 */ 500 */
962 { 966 {
963 typebuf_T save_typebuf; 967 typebuf_T save_typebuf;
964 int typebuf_valid; /* TRUE when save_typebuf valid */ 968 int typebuf_valid; /* TRUE when save_typebuf valid */
965 int old_char; 969 int old_char;
966 int old_mod_mask; 970 int old_mod_mask;
967 struct buffheader save_stuffbuff; 971 buffheader_T save_readbuf1;
972 buffheader_T save_readbuf2;
968 #ifdef USE_INPUT_BUF 973 #ifdef USE_INPUT_BUF
969 char_u *save_inputbuf; 974 char_u *save_inputbuf;
970 #endif 975 #endif
971 } tasave_T; 976 } tasave_T;
972 977