aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-27 07:26:32 +0800
committerGitHub <noreply@github.com>2022-07-27 07:26:32 +0800
commit79872f377019614467a8e03049fb47c067331804 (patch)
tree598bd74a73b0ec82b212b8b2bbe1caec0aa0e05b /test/functional/ui/float_spec.lua
parent890d4023cd9de715a0102b1dd26ce249f11a47b4 (diff)
downloadrneovim-79872f377019614467a8e03049fb47c067331804.tar.gz
rneovim-79872f377019614467a8e03049fb47c067331804.tar.bz2
rneovim-79872f377019614467a8e03049fb47c067331804.zip
fix(options): properly free string options (#19510)
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index 50247ed214..5967b630f6 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -18,6 +18,7 @@ local run = helpers.run
local pcall_err = helpers.pcall_err
local tbl_contains = global_helpers.tbl_contains
local curbuf, curwin, curtab = helpers.curbuf, helpers.curwin, helpers.curtab
+local NIL = helpers.NIL
describe('float window', function()
before_each(function()
@@ -420,6 +421,15 @@ describe('float window', function()
eq(winids, eval('winids'))
end)
+ it("no segfault when setting minimal style after clearing local 'fillchars' #19510", function()
+ local float_opts = {relative = 'editor', row = 1, col = 1, width = 1, height = 1}
+ local float_win = meths.open_win(0, true, float_opts)
+ meths.win_set_option(float_win, 'fillchars', NIL)
+ float_opts.style = 'minimal'
+ meths.win_set_config(float_win, float_opts)
+ assert_alive()
+ end)
+
describe('with only one tabpage,', function()
local float_opts = {relative = 'editor', row = 1, col = 1, width = 1, height = 1}
local old_buf, old_win