mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix: segfault when pasting in term with empty buffer
This commit is contained in:
		| @@ -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; | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dylan Armstrong
					Dylan Armstrong