Mercurial > vim
diff src/structs.h @ 29892:db0939444c96 v9.0.0284
patch 9.0.0284: using static buffer for multiple completion functions
Commit: https://github.com/vim/vim/commit/5ff595d9db2d9a33aa10cc9f18f256826226862f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 26 22:36:41 2022 +0100
patch 9.0.0284: using static buffer for multiple completion functions
Problem: Using static buffer for multiple completion functions.
Solution: Use one buffer in expand_T.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Aug 2022 23:45:03 +0200 |
parents | 31c598083364 |
children | a6721cafbc74 |
line wrap: on
line diff
--- a/src/structs.h +++ b/src/structs.h @@ -598,6 +598,8 @@ typedef struct expand int xp_col; // cursor position in line char_u **xp_files; // list of files char_u *xp_line; // text being completed +#define EXPAND_BUF_LEN 256 + char_u xp_buf[EXPAND_BUF_LEN]; // buffer for returned match } expand_T; /*