mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix: segfault when pasting in term with empty buffer
This commit is contained in:
parent
c1fbc2ddf1
commit
409b2711fe
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user