mirror of
https://github.com/neovim/neovim.git
synced 2026-02-04 02:54:29 +00:00
refactor(lua): rename vim.diff => vim.text.diff #34864
Problem: `vim.diff()` was introduced before we had the `vim.text` module, where it obviously belongs. Solution: Move it.
This commit is contained in:
@@ -217,7 +217,7 @@ describe('thread', function()
|
||||
it('diff', function()
|
||||
exec_lua [[
|
||||
local entry = function(async)
|
||||
async:send(vim.diff('Hello\n', 'Helli\n'))
|
||||
async:send(vim.text.diff('Hello\n', 'Helli\n'))
|
||||
end
|
||||
local on_async = function(ret)
|
||||
vim.rpcnotify(1, 'result', ret)
|
||||
@@ -372,7 +372,7 @@ describe('threadpool', function()
|
||||
it('work', function()
|
||||
exec_lua [[
|
||||
local work_fn = function()
|
||||
return vim.diff('Hello\n', 'Helli\n')
|
||||
return vim.text.diff('Hello\n', 'Helli\n')
|
||||
end
|
||||
local after_work_fn = function(ret)
|
||||
vim.rpcnotify(1, 'result', ret)
|
||||
|
||||
Reference in New Issue
Block a user