diff options
author | Gregory Anders <greg@gpanders.com> | 2021-10-11 22:09:08 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-12-04 14:04:23 -0700 |
commit | 71ac00ccb523383411b907b5fdf00a376e24a6f0 (patch) | |
tree | 2814a60964d9522692d5c81401e565d40693d6a1 /test/functional/api/buffer_spec.lua | |
parent | 7b910a1716eabb18fd05f8c27370a7ab1e771074 (diff) | |
download | rneovim-71ac00ccb523383411b907b5fdf00a376e24a6f0.tar.gz rneovim-71ac00ccb523383411b907b5fdf00a376e24a6f0.tar.bz2 rneovim-71ac00ccb523383411b907b5fdf00a376e24a6f0.zip |
feat(api): add nvim_get_option_value
Diffstat (limited to 'test/functional/api/buffer_spec.lua')
-rw-r--r-- | test/functional/api/buffer_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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() |