summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-03-19 18:31:11 +0800
committerGitHub <noreply@github.com>2026-03-19 10:31:11 +0000
commit4c48f19e51635b5b67dd2bb97e9240e9cc369540 (patch)
tree86dc38402e8d2b83f68bc8bef81b81b5c9551cd7 /runtime/lua/vim/provider/python.lua
parent7d6b6b2d14e511fa3b7e7dcf22ab1dc09b8d1104 (diff)
vim-patch:partial:9.2.0193: using copy_option_part() can be improved (#38369)
Problem: using copy_option_part() can be improved Solution: Refactor and use the return value of copy_option_part() to avoid strlen() calls (John Marriott). In addition, this commit includes the following changes: memline.c: - In recover_names(): - Replace calls to vim_strsave() with vim_strnsave() for the literal strings - Use a string_T to store local variable dir_name. bufwrite.c: - In buf_write() - move variable wp to where it is used. help.c: - In fix_help_buffer(): - replace call to add_pathsep() with after_pathsep() optionstr.c: - In export_myvimdir(): - use a string_T to store local variable buf - replace call to add_pathsep() with after_pathsep() scriptfile.c: - In do_in_path(): - use a string_T to store local variable buf - measure the lengths of prefix and name once before the while loop - replace call to add_pathsep() with after_pathsep() - move some variables closer to where they are used spellfile.c: - In init_spellfile(): - use a string_T to store local variable buf closes: vim/vim#19725 https://github.com/vim/vim/commit/a74e5fc5b9cc3c1596f34df9d45e33f049162cfe Co-authored-by: John Marriott <basilisk@internode.on.net>
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions