mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
vim-patch:9.1.1518: getcompletiontype() may crash (#34819)
Problem: getcompletiontype() crashes when no completion is available
(after v9.1.1509).
Solution: Don't call set_expand_context() (zeertzjq)
fixes: vim/vim#17681
closes: vim/vim#17684
e2c0f81dd0
This commit is contained in:
4
runtime/lua/vim/_meta/vimfn.lua
generated
4
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -3002,8 +3002,8 @@ function vim.fn.getcmdcomplpat() end
|
||||
--- |getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|.
|
||||
--- Returns an empty string when completion is not defined.
|
||||
---
|
||||
--- To get the type of the command-line completion for the
|
||||
--- specified string, use |getcompletiontype()|.
|
||||
--- To get the type of the command-line completion for a specified
|
||||
--- string, use |getcompletiontype()|.
|
||||
---
|
||||
--- @return string
|
||||
function vim.fn.getcmdcompltype() end
|
||||
|
||||
Reference in New Issue
Block a user