refactor(shada): remove ShaDaReadDef secondary wrapper

`FileDescriptor` is already a wrapper around an fd and a buffer.
By allowing to just use the buffer without an fd, it can
already handle in-memory reads.
This commit is contained in:
bfredl
2024-05-26 11:36:18 +02:00
parent c272f30b1f
commit b386334cdb
5 changed files with 113 additions and 238 deletions

View File

@@ -28,7 +28,7 @@ describe('ShaDa error handling', function()
it('fails on zero', function()
wshada('\000')
eq(
'Vim(rshada):E576: Error while reading ShaDa file: expected positive integer at position 0, but got nothing',
'Vim(rshada):E576: Error while reading ShaDa file: expected positive integer at position 1, but got nothing',
exc_exec(sdrcmd())
)
end)