mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
refactor(options): deprecate nvim[_buf|_win]_[gs]et_option
Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: famiu <famiuhaque@protonmail.com>
This commit is contained in:
committed by
Famiu Haque
parent
e3e6fadfd8
commit
1fe1bb084d
@@ -1401,7 +1401,7 @@ describe('API/extmarks', function()
|
||||
|
||||
it('in read-only buffer', function()
|
||||
command("view! runtime/doc/help.txt")
|
||||
eq(true, curbufmeths.get_option('ro'))
|
||||
eq(true, meths.get_option_value('ro', {buf=0}))
|
||||
local id = set_extmark(ns, 0, 0, 2)
|
||||
eq({{id, 0, 2}}, get_extmarks(ns,0, -1))
|
||||
end)
|
||||
@@ -1474,7 +1474,7 @@ describe('API/extmarks', function()
|
||||
it('in prompt buffer', function()
|
||||
feed('dd')
|
||||
local id = set_extmark(ns, marks[1], 0, 0, {})
|
||||
curbufmeths.set_option('buftype', 'prompt')
|
||||
meths.set_option_value('buftype', 'prompt', {buf = 0})
|
||||
feed('i<esc>')
|
||||
eq({{id, 0, 2}}, get_extmarks(ns, 0, -1))
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user