diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-22 19:53:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 19:53:44 -0500 |
commit | d0668b36a3e2d0683059baead45bea27e2358e9c (patch) | |
tree | c1066da573559e85924cb783082917750cc9b09f /src/nvim/ops.c | |
parent | b931a554d70ef07803da3eb3f98ce4b3a3570d11 (diff) | |
parent | b602fe74b075b5e3c4f095d907bed9abc98462f3 (diff) | |
download | rneovim-d0668b36a3e2d0683059baead45bea27e2358e9c.tar.gz rneovim-d0668b36a3e2d0683059baead45bea27e2358e9c.tar.bz2 rneovim-d0668b36a3e2d0683059baead45bea27e2358e9c.zip |
Merge pull request #13586 from janlazo/vim-8.1.1047
vim-patch:8.1.{1047,1101,1212},8.2.{742,749,769,874,2142,2189,2192}
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 37db1bb7e2..8fddb1b561 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -1197,7 +1197,13 @@ int insert_reg( retval = FAIL; } else { for (size_t i = 0; i < reg->y_size; i++) { - stuffescaped((const char *)reg->y_array[i], literally); + if (regname == '-') { + AppendCharToRedobuff(Ctrl_R); + AppendCharToRedobuff(regname); + do_put(regname, NULL, BACKWARD, 1L, PUT_CURSEND); + } else { + stuffescaped((const char *)reg->y_array[i], literally); + } // Insert a newline between lines and after last line if // y_type is kMTLineWise. if (reg->y_type == kMTLineWise || i < reg->y_size - 1) { |