ui: forward 'linespace' option #7883

ref #7520
This commit is contained in:
Justin M. Keyes
2018-01-21 07:31:57 +01:00
parent ada1956206
commit eb4aab7173
5 changed files with 19 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ describe('ui receives option updates', function()
guifont='',
guifontset='',
guifontwide='',
linespace=0,
showtabline=1,
termguicolors=false,
}
@@ -58,6 +59,18 @@ describe('ui receives option updates', function()
eq(changed, screen.options)
end)
command("set linespace=13")
changed.linespace = 13
screen:expect(function()
eq(changed, screen.options)
end)
command("set linespace=-11")
changed.linespace = -11
screen:expect(function()
eq(changed, screen.options)
end)
command("set all&")
screen:expect(function()
eq(defaults, screen.options)