refactor(undo): don't assume curbuf in u_compute_hash

This commit is contained in:
Thomas Vigouroux
2021-07-09 15:10:49 +02:00
parent 9132b76da6
commit ff53c5585f
5 changed files with 20 additions and 24 deletions

View File

@@ -38,7 +38,7 @@ child_call_once(function()
--
-- compute a hash for this undofile
buffer_hash = ffi.new('char_u[32]')
undo.u_compute_hash(buffer_hash)
undo.u_compute_hash(file_buffer, buffer_hash)
end)