patch 9.1.1224: cannot :put while keeping indent
Problem: cannot :put while keeping indent (Peter Aronoff)
Solution: add the :iput ex command (64-bitman)
fixes: #16225
closes: #16886
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: 64-bitman <60551350+64-bitman@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 9d0bf71..cb7b948 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4595,7 +4595,12 @@
case CMD_put:
ea.cmd = cmd;
- line = compile_put(p, &ea, cctx);
+ line = compile_put(p, &ea, cctx, FALSE);
+ break;
+
+ case CMD_iput:
+ ea.cmd = cmd;
+ line = compile_put(p, &ea, cctx, TRUE);
break;
case CMD_substitute: