Skip to content

Commit 010bbb1

Browse files
committed
(mini.basics) Make "don't modify manually set options" more robust.
1 parent 3a3e19d commit 010bbb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_basics.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ end
143143
T['Options']['do not override manually set options'] = function()
144144
-- Shouldn't modify options manually set to non-default value
145145
child.g.mapleader = ';'
146-
child.o.signcolumn = 'no'
147-
child.o.pumblend = 50
146+
child.cmd('set signcolumn=no')
147+
child.cmd('set pumblend=50')
148148

149149
-- Shouldn't modify option manually set to default value
150-
child.o.number = false
151-
child.o.list = false
150+
child.cmd('set nonumber')
151+
child.cmd('set nolist')
152152

153153
load_module({ options = { basic = true, extra_ui = true } })
154154

0 commit comments

Comments
 (0)