comparison src/ops.c @ 23281:5b4db8035d1d v8.2.2186

patch 8.2.2186: Vim9: error when using 'opfunc' Commit: https://github.com/vim/vim/commit/5b3d1bb0f5180266c4de4d815b3ea856a2fb3519 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 22 12:20:08 2020 +0100 patch 8.2.2186: Vim9: error when using 'opfunc' Problem: Vim9: error when using 'opfunc'. Solution: Do not expect a return value from 'opfunc'. (closes https://github.com/vim/vim/issues/7510)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Dec 2020 12:30:04 +0100
parents 87acfcf65a2e
children f2a70fca3485
comparison
equal deleted inserted replaced
23280:a6d48e6961aa 23281:5b4db8035d1d
3297 3297
3298 // Reset virtual_op so that 'virtualedit' can be changed in the 3298 // Reset virtual_op so that 'virtualedit' can be changed in the
3299 // function. 3299 // function.
3300 virtual_op = MAYBE; 3300 virtual_op = MAYBE;
3301 3301
3302 (void)call_func_retnr(p_opfunc, 1, argv); 3302 (void)call_func_noret(p_opfunc, 1, argv);
3303 3303
3304 virtual_op = save_virtual_op; 3304 virtual_op = save_virtual_op;
3305 if (cmdmod.cmod_flags & CMOD_LOCKMARKS) 3305 if (cmdmod.cmod_flags & CMOD_LOCKMARKS)
3306 { 3306 {
3307 curbuf->b_op_start = orig_start; 3307 curbuf->b_op_start = orig_start;