From f3a54e7ccfcfa2752eccd7585e2c4b94a4c8c433 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 12 Jul 2025 18:36:07 -0400 Subject: 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. --- test/functional/lua/thread_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional/lua/thread_spec.lua') diff --git a/test/functional/lua/thread_spec.lua b/test/functional/lua/thread_spec.lua index e4ff2b8068..8653377760 100644 --- a/test/functional/lua/thread_spec.lua +++ b/test/functional/lua/thread_spec.lua @@ -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) -- cgit