shada: Remember whether "0 or "1 was the unnamed register

Ref #4645
This commit is contained in:
James McCoy 2016-04-26 14:16:09 -04:00 committed by AdnoC
parent f4fddbfb77
commit 2dc27a8a78

View File

@ -148,4 +148,14 @@ describe('ShaDa support code', function()
eq({{'\171«'}, 'v'}, getreg('e'))
end)
it('remembers which register was the unnamed register when loading',
function()
setreg('0', {'zero'}, 'c')
setreg('1', {'one'}, 'c')
nvim_command('qall')
reset()
eq({{'zero'}, 'v'}, getreg('0'))
eq({{'one'}, 'v'}, getreg('1'))
eq({{'one'}, 'v'}, getreg('"'))
end)
end)