mirror of
				https://github.com/vim/vim.git
				synced 2025-10-30 09:47:20 -04:00 
			
		
		
		
	patch 9.1.0100: Redrawing can be improved with undo and 'spell'
Problem:  When undoing with 'spell', redrawWinline() is called after
          changed_lines(), while later win_update() sets redraw type to
          UPD_NOT_VALID, even though w_redraw_top and w_redraw_bot are
          still valid.
Solution: Only set redraw type to UPD_NOT_VALID when inserting/deleting
          lines after parts of window has pending redraw, i.e., when
          changed_lines() is called after redrawWinline().
          (zeertzjq)
closes: #14019
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
			
			
This commit is contained in:
		
				
					committed by
					
						 Christian Brabandt
						Christian Brabandt
					
				
			
			
				
	
			
			
			
						parent
						
							a0010a186d
						
					
				
				
					commit
					f2d90a3511
				
			| @@ -3899,8 +3899,8 @@ may_update_popup_mask(int type) | ||||
|  | ||||
| 			// The screen position "line" / "col" needs to be | ||||
| 			// redrawn.  Figure out what window that is and update | ||||
| 			// w_redraw_top and w_redr_bot.  Only needs to be done | ||||
| 			// once for each window line. | ||||
| 			// w_redraw_top and w_redraw_bot.  Only needs to be | ||||
| 			// done once for each window line. | ||||
| 			wp = mouse_find_win(&line_cp, &col_cp, IGNORE_POPUP); | ||||
| 			if (wp != NULL) | ||||
| 			{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user