This commit is contained in:
Jan Edmund Lazo
2018-08-16 13:23:51 -04:00
parent 7482aef113
commit 0223c81457
4 changed files with 35 additions and 32 deletions

View File

@@ -3309,9 +3309,9 @@ static bool cmdline_paste(int regname, bool literally, bool remcr)
/* Need to save and restore ccline. And set "textlock" to avoid nasty
* things like going to another buffer when evaluating an expression. */
save_cmdline(&save_ccline);
++textlock;
textlock++;
const bool i = get_spec_reg(regname, &arg, &allocated, true);
--textlock;
textlock--;
restore_cmdline(&save_ccline);
if (i) {