mirror of
				https://github.com/vim/vim.git
				synced 2025-10-31 09:57:14 -04:00 
			
		
		
		
	updated for version 7.2-144
This commit is contained in:
		
							
								
								
									
										10
									
								
								src/option.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/option.c
									
									
									
									
									
								
							| @@ -6022,7 +6022,14 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf, | ||||
| 	/* ":set t_Co=0" and ":set t_Co=1" do ":set t_Co=" */ | ||||
| 	if (varp == &T_CCO) | ||||
| 	{ | ||||
| 	    t_colors = atoi((char *)T_CCO); | ||||
| 	    int colors = atoi((char *)T_CCO); | ||||
|  | ||||
| 	    /* Only reinitialize colors if t_Co value has really changed to | ||||
| 	     * avoid expensive reload of colorscheme if t_Co is set to the | ||||
| 	     * same value multiple times. */ | ||||
| 	    if (colors != t_colors) | ||||
| 	    { | ||||
| 		t_colors = colors; | ||||
| 		if (t_colors <= 1) | ||||
| 		{ | ||||
| 		    if (new_value_alloced) | ||||
| @@ -6032,6 +6039,7 @@ did_set_string_option(opt_idx, varp, new_value_alloced, oldval, errbuf, | ||||
| 		/* We now have a different color setup, initialize it again. */ | ||||
| 		init_highlight(TRUE, FALSE); | ||||
| 	    } | ||||
| 	} | ||||
| 	ttest(FALSE); | ||||
| 	if (varp == &T_ME) | ||||
| 	{ | ||||
|   | ||||
| @@ -676,6 +676,8 @@ static char *(features[]) = | ||||
|  | ||||
| static int included_patches[] = | ||||
| {   /* Add new patch number below this line */ | ||||
| /**/ | ||||
|     144, | ||||
| /**/ | ||||
|     143, | ||||
| /**/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user