mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	Merge #6259 from justinmk/ui_refresh
This commit is contained in:
		| @@ -7440,13 +7440,7 @@ int number_width(win_T *wp) | |||||||
|   return n; |   return n; | ||||||
| } | } | ||||||
|  |  | ||||||
| /* | /// Set dimensions of the Nvim application "shell". | ||||||
|  * Set size of the Vim shell. |  | ||||||
|  * If 'mustset' is TRUE, we must set Rows and Columns, do not get the real |  | ||||||
|  * window size (this is used for the :win command). |  | ||||||
|  * If 'mustset' is FALSE, we may try to get the real window size and if |  | ||||||
|  * it fails use 'width' and 'height'. |  | ||||||
|  */ |  | ||||||
| void screen_resize(int width, int height) | void screen_resize(int width, int height) | ||||||
| { | { | ||||||
|   static int busy = FALSE; |   static int busy = FALSE; | ||||||
| @@ -7531,8 +7525,8 @@ void screen_resize(int width, int height) | |||||||
|   --busy; |   --busy; | ||||||
| } | } | ||||||
|  |  | ||||||
| // Check if the new shell size is valid, correct it if it's too small or way | /// Check if the new Nvim application "shell" dimensions are valid. | ||||||
| // too big. | /// Correct it if it's too small or way too big. | ||||||
| void check_shellsize(void) | void check_shellsize(void) | ||||||
| { | { | ||||||
|   if (Rows < min_rows()) { |   if (Rows < min_rows()) { | ||||||
|   | |||||||
| @@ -193,7 +193,12 @@ void ui_refresh(void) | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   row = col = 0; |   row = col = 0; | ||||||
|  |  | ||||||
|  |   int save_p_lz = p_lz; | ||||||
|  |   p_lz = false;  // convince redrawing() to return true ... | ||||||
|   screen_resize(width, height); |   screen_resize(width, height); | ||||||
|  |   p_lz = save_p_lz; | ||||||
|  |  | ||||||
|   for (UIWidget i = 0; (int)i < UI_WIDGETS; i++) { |   for (UIWidget i = 0; (int)i < UI_WIDGETS; i++) { | ||||||
|     ui_set_external(i, ext_widgets[i]); |     ui_set_external(i, ext_widgets[i]); | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes