mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
TUI: do not use "nvim_get_option" in tui thread
Since "nvim_get_option" is executed on the tui thread as a C function instead of msgpack-rpc, it accesses global variables that may change on the main thread.
This commit is contained in:
@@ -2587,6 +2587,7 @@ return {
|
||||
type='bool', scope={'global'},
|
||||
vi_def=true,
|
||||
vim=true,
|
||||
redraw={'ui_option'},
|
||||
varname='p_ttimeout',
|
||||
defaults={if_true={vi=true}}
|
||||
},
|
||||
@@ -2594,6 +2595,7 @@ return {
|
||||
full_name='ttimeoutlen', abbreviation='ttm',
|
||||
type='number', scope={'global'},
|
||||
vi_def=true,
|
||||
redraw={'ui_option'},
|
||||
varname='p_ttm',
|
||||
defaults={if_true={vi=50}}
|
||||
},
|
||||
|
Reference in New Issue
Block a user