aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-03-22 19:43:21 +0100
committerGitHub <noreply@github.com>2020-03-22 19:43:21 +0100
commit9847306b9531fb27b6c84359814618b1accabf7b (patch)
tree115079aaeb3a9e346c4b66469623d6ed353579fb /test/functional
parent61d4b81d21d4907b97c706866c1ce663c417f433 (diff)
parent9333f86ab7d0e85d9f658bfe455860771de9b997 (diff)
downloadrneovim-9847306b9531fb27b6c84359814618b1accabf7b.tar.gz
rneovim-9847306b9531fb27b6c84359814618b1accabf7b.tar.bz2
rneovim-9847306b9531fb27b6c84359814618b1accabf7b.zip
Merge pull request #12030 from erw7/fix-tui-access-global-var
TUI: do not use nvim_get_option in tui thread
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/options_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua
index 581e196bbb..9646c3fdad 100644
--- a/test/functional/ui/options_spec.lua
+++ b/test/functional/ui/options_spec.lua
@@ -20,6 +20,8 @@ describe('UI receives option updates', function()
pumblend=0,
showtabline=1,
termguicolors=false,
+ ttimeout=true,
+ ttimeoutlen=50,
ext_cmdline=false,
ext_popupmenu=false,
ext_tabline=false,
@@ -108,6 +110,18 @@ describe('UI receives option updates', function()
eq(expected, screen.options)
end)
+ command("set nottimeout")
+ expected.ttimeout = false
+ screen:expect(function()
+ eq(expected, screen.options)
+ end)
+
+ command("set ttimeoutlen=100")
+ expected.ttimeoutlen = 100
+ screen:expect(function()
+ eq(expected, screen.options)
+ end)
+
command("set all&")
screen:expect(function()
eq(defaults, screen.options)