From 71ac00ccb523383411b907b5fdf00a376e24a6f0 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Mon, 11 Oct 2021 22:09:08 -0600 Subject: feat(api): add nvim_get_option_value --- test/functional/api/buffer_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/functional/api/buffer_spec.lua') diff --git a/test/functional/api/buffer_spec.lua b/test/functional/api/buffer_spec.lua index a0c97804b7..688f3abba5 100644 --- a/test/functional/api/buffer_spec.lua +++ b/test/functional/api/buffer_spec.lua @@ -629,6 +629,13 @@ describe('api/buf', function() -- Doesn't change the global value eq([[^\s*#\s*define]], nvim('get_option', 'define')) end) + + it('returns values for unset local options', function() + -- 'undolevels' is only set to its "unset" value when a new buffer is + -- created + command('enew') + eq(-123456, curbuf('get_option', 'undolevels')) + end) end) describe('nvim_buf_get_name, nvim_buf_set_name', function() -- cgit