mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 10:01:49 +00:00
vim-patch:8.2.3751: cannot assign a lambda to an option that takes a function
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes vim/vim#9286)
6409553b6e
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -29,14 +29,14 @@ local type_flags={
|
||||
}
|
||||
|
||||
local redraw_flags={
|
||||
ui_option='P_UI_OPTION',
|
||||
tabline='P_RTABL',
|
||||
statuslines='P_RSTAT',
|
||||
tabline = 'P_RTABL',
|
||||
current_window='P_RWIN',
|
||||
current_window_only='P_RWINONLY',
|
||||
current_buffer='P_RBUF',
|
||||
all_windows='P_RALL',
|
||||
curswant='P_CURSWANT',
|
||||
ui_option='P_UI_OPTION',
|
||||
}
|
||||
|
||||
local list_flags={
|
||||
@@ -78,6 +78,7 @@ local get_flags = function(o)
|
||||
{'deny_in_modelines', 'P_NO_ML'},
|
||||
{'deny_duplicates', 'P_NODUP'},
|
||||
{'modelineexpr', 'P_MLE'},
|
||||
{'func'}
|
||||
}) do
|
||||
local key_name = flag_desc[1]
|
||||
local def_name = flag_desc[2] or ('P_' .. key_name:upper())
|
||||
|
||||
Reference in New Issue
Block a user