mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	api: buffer_insert: fix bounds. #3315
buffer_insert calls buffer_set_line_slice excluding the start line number and including the end, but it should be the opposite. Closes https://github.com/neovim/neovim/issues/3212 Closes https://github.com/neovim/python-client/issues/103
This commit is contained in:
		 Enrico Ghirardi
					Enrico Ghirardi
				
			
				
					committed by
					
						 Justin M. Keyes
						Justin M. Keyes
					
				
			
			
				
	
			
			
			 Justin M. Keyes
						Justin M. Keyes
					
				
			
						parent
						
							3736a613e8
						
					
				
				
					commit
					1d1963e90e
				
			| @@ -467,7 +467,7 @@ void buffer_insert(Buffer buffer, | ||||
|                    ArrayOf(String) lines, | ||||
|                    Error *err) | ||||
| { | ||||
|   buffer_set_line_slice(buffer, lnum, lnum, false, true, lines, err); | ||||
|   buffer_set_line_slice(buffer, lnum, lnum, true, false, lines, err); | ||||
| } | ||||
|  | ||||
| /// Return a tuple (row,col) representing the position of the named mark | ||||
|   | ||||
		Reference in New Issue
	
	Block a user