mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
Revert "vim-patch:8.0.1723: using one item array size declaration is misleading" (#10583)
This reverts commit 315076a26d
.
This commit is contained in:

committed by
Daniel Hahler

parent
4aabe4a0d5
commit
0d5f629208
@@ -133,14 +133,14 @@ typedef struct buffheader buffheader_T;
|
||||
*/
|
||||
struct buffblock {
|
||||
buffblock_T *b_next; // pointer to next buffblock
|
||||
char_u b_str[]; // contents (flexible array)
|
||||
char_u b_str[1]; // contents (actually longer)
|
||||
};
|
||||
|
||||
/*
|
||||
* header used for the stuff buffer and the redo buffer
|
||||
*/
|
||||
struct buffheader {
|
||||
buffblock_T *bh_first; // first block of the list
|
||||
buffblock_T bh_first; // first (dummy) block of list
|
||||
buffblock_T *bh_curr; // buffblock for appending
|
||||
size_t bh_index; // index for reading
|
||||
size_t bh_space; // space in bh_curr for appending
|
||||
|
Reference in New Issue
Block a user