comparison 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
comparison
equal deleted inserted replaced
29891:6c571257924c 29892:db0939444c96
596 int xp_numfiles; // number of files found by 596 int xp_numfiles; // number of files found by
597 // file name completion 597 // file name completion
598 int xp_col; // cursor position in line 598 int xp_col; // cursor position in line
599 char_u **xp_files; // list of files 599 char_u **xp_files; // list of files
600 char_u *xp_line; // text being completed 600 char_u *xp_line; // text being completed
601 #define EXPAND_BUF_LEN 256
602 char_u xp_buf[EXPAND_BUF_LEN]; // buffer for returned match
601 } expand_T; 603 } expand_T;
602 604
603 /* 605 /*
604 * values for xp_backslash 606 * values for xp_backslash
605 */ 607 */