summaryrefslogtreecommitdiff
path: root/src/mouse.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-08 22:45:35 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-08 22:45:35 +0200
commitc3516f7e4507c77424b94cb89071f6d0841f4e6a (patch)
tree08b13ec0f9f8b88e0ec8cbab01899960dae3423b /src/mouse.c
parent6defa7bf0a8935cc44f3dc12e9c87bbb40f190b7 (diff)
downloadvim-git-c3516f7e4507c77424b94cb89071f6d0841f4e6a.tar.gz
patch 8.2.1637: Vim9: :put ={expr} does not work inside :def functionv8.2.1637
Problem: Vim9: :put ={expr} does not work inside :def function. Solution: Add ISN_PUT. (closes #6397)
Diffstat (limited to 'src/mouse.c')
-rw-r--r--src/mouse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mouse.c b/src/mouse.c
index 7af90494f..7b1bedc7e 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -430,7 +430,8 @@ do_mouse(
insert_reg(regname, TRUE);
else
{
- do_put(regname, BACKWARD, 1L, fixindent | PUT_CURSEND);
+ do_put(regname, NULL, BACKWARD, 1L,
+ fixindent | PUT_CURSEND);
// Repeat it with CTRL-R CTRL-O r or CTRL-R CTRL-P r
AppendCharToRedobuff(Ctrl_R);
@@ -849,7 +850,7 @@ do_mouse(
// to this position
if (restart_edit != 0)
where_paste_started = curwin->w_cursor;
- do_put(regname, dir, count, fixindent | PUT_CURSEND);
+ do_put(regname, NULL, dir, count, fixindent | PUT_CURSEND);
}
#if defined(FEAT_QUICKFIX)