comparison src/normal.c @ 22176:6941d3205be9 v8.2.1637

patch 8.2.1637: Vim9: :put ={expr} does not work inside :def function Commit: https://github.com/vim/vim/commit/c3516f7e4507c77424b94cb89071f6d0841f4e6a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 8 22:45:35 2020 +0200 patch 8.2.1637: Vim9: :put ={expr} does not work inside :def function Problem: Vim9: :put ={expr} does not work inside :def function. Solution: Add ISN_PUT. (closes https://github.com/vim/vim/issues/6397)
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Sep 2020 23:00:04 +0200
parents 9bb1c984c4da
children f7f2d73ff85e
comparison
equal deleted inserted replaced
22175:0c8d7e6e20a6 22176:6941d3205be9
7425 // forward. 7425 // forward.
7426 dir = FORWARD; 7426 dir = FORWARD;
7427 // May have been reset in do_put(). 7427 // May have been reset in do_put().
7428 VIsual_active = TRUE; 7428 VIsual_active = TRUE;
7429 } 7429 }
7430 do_put(cap->oap->regname, dir, cap->count1, flags); 7430 do_put(cap->oap->regname, NULL, dir, cap->count1, flags);
7431 7431
7432 // If a register was saved, put it back now. 7432 // If a register was saved, put it back now.
7433 if (reg2 != NULL) 7433 if (reg2 != NULL)
7434 put_register(regname, reg2); 7434 put_register(regname, reg2);
7435 7435
7498 7498
7499 #ifdef FEAT_DND 7499 #ifdef FEAT_DND
7500 static void 7500 static void
7501 nv_drop(cmdarg_T *cap UNUSED) 7501 nv_drop(cmdarg_T *cap UNUSED)
7502 { 7502 {
7503 do_put('~', BACKWARD, 1L, PUT_CURSEND); 7503 do_put('~', NULL, BACKWARD, 1L, PUT_CURSEND);
7504 } 7504 }
7505 #endif 7505 #endif
7506 7506
7507 /* 7507 /*
7508 * Trigger CursorHold event. 7508 * Trigger CursorHold event.