Skip to content

Commit 1d121e0

Browse files
committed
tests: global and local options
While 'listchars' is a global option in Nvim 0.3.5, in HEAD it was changed to be local to the window. Use another option to be on the safe side.
1 parent 1133b21 commit 1d121e0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/test_vim.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,15 @@ def test_vars(vim):
9090

9191

9292
def test_options(vim):
93-
assert vim.windows[0].options['listchars'] == 'tab:> ,trail:-,nbsp:+'
94-
vim.windows[0].options['listchars'] = 'tab:xy'
95-
assert vim.windows[0].options['listchars'] == 'tab:xy'
93+
assert vim.options['background'] == 'dark'
94+
vim.options['background'] = 'light'
95+
assert vim.options['background'] == 'light'
96+
97+
98+
def test_local_options(vim):
99+
assert vim.windows[0].options['foldmethod'] == 'manual'
100+
vim.windows[0].options['foldmethod'] = 'syntax'
101+
assert vim.windows[0].options['foldmethod'] == 'syntax'
96102

97103

98104
def test_buffers(vim):

0 commit comments

Comments
 (0)