mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +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:
@@ -164,9 +164,7 @@ static int call_on_hunk_cb(int start_a, int count_a, int start_b, int count_b, v
|
||||
lua_pushinteger(lstate, count_b);
|
||||
|
||||
if (lua_pcall(lstate, 4, 1, 0) != 0) {
|
||||
api_set_error(err, kErrorTypeException,
|
||||
"error running function on_hunk: %s",
|
||||
lua_tostring(lstate, -1));
|
||||
api_set_error(err, kErrorTypeException, "on_hunk: %s", lua_tostring(lstate, -1));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user