aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 3038fad894..32498b7f97 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -2971,7 +2971,7 @@ void do_put(int regname, yankreg_T *reg, int dir, long count, int flags)
y_array = reg->y_array;
}
- if (curbuf->terminal) {
+ if (y_size > 0 && curbuf->terminal) {
terminal_paste(count, y_array, y_size);
return;
}