aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-03-09 22:10:56 +0900
committerJustin M. Keyes <justinkz@gmail.com>2019-03-09 14:10:56 +0100
commitf719247118119cd6cd8158f3fead995175b92566 (patch)
treeecd3ade6dd757fa54aaddc151eb4eb99cd3b3453 /test/functional/ui/float_spec.lua
parent4352d41db0d93ab9266c64be48eda872cb5ea589 (diff)
downloadrneovim-f719247118119cd6cd8158f3fead995175b92566.tar.gz
rneovim-f719247118119cd6cd8158f3fead995175b92566.tar.bz2
rneovim-f719247118119cd6cd8158f3fead995175b92566.zip
floating-window: fix crash setting cmdheight #9685
fixes #9680
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index 2ed3606491..3be2182eb4 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -1019,6 +1019,13 @@ describe('floating windows', function()
end
end)
+ it('does not crash when set cmdheight #9680', function()
+ local buf = meths.create_buf(false,false)
+ meths.open_win(buf, false, 20, 2, {relative='editor', row=2, col=5})
+ command("set cmdheight=2")
+ eq(1, meths.eval('1'))
+ end)
+
describe('and completion', function()
before_each(function()
local buf = meths.create_buf(false,false)