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:
erw7
2020-03-20 03:31:10 +09:00
parent 87d892afa0
commit 9333f86ab7
5 changed files with 31 additions and 19 deletions

View File

@@ -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}}
},