mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +00:00
vim-patch:8.2.0614: get ml_get error when deleting a line in 'completefunc' (#19244)
Problem: Get ml_get error when deleting a line in 'completefunc'. (Yegappan
Lakshmanan)
Solution: Lock the text while evaluating 'completefunc'.
ff06f283e3
Fix a mistake in the porting of patch 8.1.0098.
Cherry-pick Test_run_excmd_with_text_locked() from patch 8.2.0270.
Cherry-pick test_gf.vim changes from patch 8.2.0369.
Cherry-pick message change from later patches.
This commit is contained in:
@@ -292,7 +292,7 @@ for i = 1, #functions do
|
||||
|
||||
if fn.check_textlock then
|
||||
output:write('\n if (textlock != 0) {')
|
||||
output:write('\n api_set_error(error, kErrorTypeException, "%s", e_secure);')
|
||||
output:write('\n api_set_error(error, kErrorTypeException, "%s", e_textlock);')
|
||||
output:write('\n goto cleanup;')
|
||||
output:write('\n }\n')
|
||||
end
|
||||
@@ -435,7 +435,7 @@ local function process_function(fn)
|
||||
if fn.check_textlock then
|
||||
write_shifted_output(output, [[
|
||||
if (textlock != 0) {
|
||||
api_set_error(&err, kErrorTypeException, "%s", e_secure);
|
||||
api_set_error(&err, kErrorTypeException, "%s", e_textlock);
|
||||
goto exit_0;
|
||||
}
|
||||
]])
|
||||
|
Reference in New Issue
Block a user