Skip to content

Commit 5a329f2

Browse files
committed
test: fix test_options
IIRC this became more strict at some point: since 'listchars' is window-local, it is not resolved by vim.options (nvim_get_option).
1 parent 2a31195 commit 5a329f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_vim.py

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

9191

9292
def test_options(vim):
93-
assert vim.options['listchars'] == 'tab:> ,trail:-,nbsp:+'
94-
vim.options['listchars'] = 'tab:xy'
95-
assert vim.options['listchars'] == 'tab:xy'
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'
9696

9797

9898
def test_buffers(vim):

0 commit comments

Comments
 (0)