aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shada/compatibility_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-04-21 20:11:27 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2016-04-21 20:11:27 +0200
commitcef624ee9e14bf15598219d96f65a6e4932eb935 (patch)
tree24afb43c916063c690d7a8f5fb319cac407aeb01 /test/functional/shada/compatibility_spec.lua
parenta7a0bf54e3f339f7bf1f97dee44546cdcd926b1d (diff)
parentce17d031805ab548f26f5b2d519fb8e3bf1bbff1 (diff)
downloadrneovim-cef624ee9e14bf15598219d96f65a6e4932eb935.tar.gz
rneovim-cef624ee9e14bf15598219d96f65a6e4932eb935.tar.bz2
rneovim-cef624ee9e14bf15598219d96f65a6e4932eb935.zip
Merge pull request #4618 from bfredl/regcrash
eval: make sure getreg() returns a valid list for an unset register (vim-patch:7.4.1755)
Diffstat (limited to 'test/functional/shada/compatibility_spec.lua')
-rw-r--r--test/functional/shada/compatibility_spec.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/shada/compatibility_spec.lua b/test/functional/shada/compatibility_spec.lua
index 774a1f1346..1fa88c58e5 100644
--- a/test/functional/shada/compatibility_spec.lua
+++ b/test/functional/shada/compatibility_spec.lua
@@ -270,9 +270,7 @@ describe('ShaDa forward compatibility support code', function()
it('works with register item with type 10', function()
wshada('\005\001\019\132\161na\162rX\194\162rc\145\196\001-\162rt\010')
eq(0, exc_exec(sdrcmd(true)))
- -- getreg may return empty list as list with NULL pointer which API
- -- translates into nil for some reason.
- eq(NIL, funcs.getreg('a', 1, 1) or {})
+ eq({}, funcs.getreg('a', 1, 1))
eq('', funcs.getregtype('a'))
nvim_command('wshada ' .. shada_fname)
local found = 0