mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
vim-patch:8.1.2285: padding in structures wastes memory
Problem: Padding in structures wastes memory.
Solution: Move fields to avoid padding. (Dominique Pelle, closes vim/vim#5202)
d6beab0248
Skip "ml_line_len" member of "struct memline".
Patch v8.1.0579 was not ported.
This commit is contained in:
@@ -188,8 +188,8 @@ struct exarg {
|
||||
|
||||
// used for completion on the command line
|
||||
struct expand {
|
||||
int xp_context; // type of expansion
|
||||
char_u *xp_pattern; // start of item to expand
|
||||
int xp_context; // type of expansion
|
||||
size_t xp_pattern_len; // bytes in xp_pattern before cursor
|
||||
char_u *xp_arg; // completion function
|
||||
sctx_T xp_script_ctx; // SCTX for completion function
|
||||
@@ -199,9 +199,9 @@ struct expand {
|
||||
// characters need to be escaped
|
||||
#endif
|
||||
int xp_numfiles; // number of files found by file name completion
|
||||
int xp_col; // cursor position in line
|
||||
char_u **xp_files; // list of files
|
||||
char_u *xp_line; // text being completed
|
||||
int xp_col; // cursor position in line
|
||||
};
|
||||
|
||||
// values for xp_backslash
|
||||
|
Reference in New Issue
Block a user