aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/thread_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-07-12 18:36:07 -0400
committerGitHub <noreply@github.com>2025-07-12 22:36:07 +0000
commitf3a54e7ccfcfa2752eccd7585e2c4b94a4c8c433 (patch)
tree8b3c80476217f30d1356bae3d0d017669c14252f /test/functional/lua/thread_spec.lua
parent430be9d01df443b096ab2c22f943589fb9086025 (diff)
downloadrneovim-f3a54e7ccfcfa2752eccd7585e2c4b94a4c8c433.tar.gz
rneovim-f3a54e7ccfcfa2752eccd7585e2c4b94a4c8c433.tar.bz2
rneovim-f3a54e7ccfcfa2752eccd7585e2c4b94a4c8c433.zip
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.
Diffstat (limited to 'test/functional/lua/thread_spec.lua')
-rw-r--r--test/functional/lua/thread_spec.lua4
1 files changed, 2 insertions, 2 deletions
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)