File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3200,8 +3200,9 @@ cmdline_del(int from)
32003200#endif
32013201
32023202/*
3203- * this function is called when the screen size changes and with incremental
3204- * search
3203+ * This function is called when the screen size changes and with incremental
3204+ * search and in other situations where the command line may have been
3205+ * overwritten.
32053206 */
32063207 void
32073208redrawcmdline (void )
@@ -4516,7 +4517,7 @@ cleanup_help_tags(int num_file, char_u **file)
45164517 char_u buf [4 ];
45174518 char_u * p = buf ;
45184519
4519- if (p_hlg [0 ] != NUL )
4520+ if (p_hlg [0 ] != NUL && ( p_hlg [ 0 ] != 'e' || p_hlg [ 1 ] != 'n' ) )
45204521 {
45214522 * p ++ = '@' ;
45224523 * p ++ = p_hlg [0 ];
@@ -4529,10 +4530,10 @@ cleanup_help_tags(int num_file, char_u **file)
45294530 len = (int )STRLEN (file [i ]) - 3 ;
45304531 if (len <= 0 )
45314532 continue ;
4532- if (i == 0 && STRCMP (file [i ] + len , buf ) == 0 )
4533+ if (STRCMP (file [i ] + len , buf ) == 0 )
45334534 {
4535+ /* remove the default language */
45344536 file [i ][len ] = NUL ;
4535- break ;
45364537 }
45374538 else if (STRCMP (file [i ] + len , "@en" ) == 0 )
45384539 {
@@ -4544,10 +4545,8 @@ cleanup_help_tags(int num_file, char_u **file)
45444545 && STRNCMP (file [i ], file [j ], len + 1 ) == 0 )
45454546 break ;
45464547 if (j == num_file )
4547- {
4548+ /* item only exists with @en, remove it */
45484549 file [i ][len ] = NUL ;
4549- break ;
4550- }
45514550 }
45524551 }
45534552}
Original file line number Diff line number Diff line change @@ -5234,14 +5234,14 @@ msg_add_lines(
52345234 if (insert_space )
52355235 * p ++ = ' ' ;
52365236 if (shortmess (SHM_LINES ))
5237- sprintf ((char * )p ,
52385237#ifdef LONG_LONG_OFF_T
5239- "%ldL, %lldC" , lnum , (long long )nchars
5238+ sprintf ((char * )p ,
5239+ "%ldL, %lldC" , lnum , (long long )nchars );
52405240#else
5241+ sprintf ((char * )p ,
52415242 /* Explicit typecast avoids warning on Mac OS X 10.6 */
5242- "%ldL, %ldC" , lnum , (long )nchars
5243+ "%ldL, %ldC" , lnum , (long )nchars );
52435244#endif
5244- );
52455245 else
52465246 {
52475247 if (lnum == 1 )
@@ -5252,14 +5252,14 @@ msg_add_lines(
52525252 if (nchars == 1 )
52535253 STRCPY (p , _ ("1 character" ));
52545254 else
5255- sprintf ((char * )p ,
52565255#ifdef LONG_LONG_OFF_T
5257- _ ("%lld characters" ), (long long )nchars
5256+ sprintf ((char * )p ,
5257+ _ ("%lld characters" ), (long long )nchars );
52585258#else
5259+ sprintf ((char * )p ,
52595260 /* Explicit typecast avoids warning on Mac OS X 10.6 */
5260- _ ("%ld characters" ), (long )nchars
5261+ _ ("%ld characters" ), (long )nchars );
52615262#endif
5262- );
52635263 }
52645264}
52655265
Original file line number Diff line number Diff line change @@ -2264,6 +2264,7 @@ find_tags(
22642264 if (ga_grow (& ga_match [mtt ], 1 ) == OK )
22652265 {
22662266 int len ;
2267+ int heuristic ;
22672268
22682269 if (help_only )
22692270 {
@@ -2293,13 +2294,14 @@ find_tags(
22932294 p [len ] = '@' ;
22942295 STRCPY (p + len + 1 , help_lang );
22952296#endif
2296- sprintf (( char * ) p + len + 1 + ML_EXTRA , "%06d" ,
2297- help_heuristic (tagp .tagname ,
2298- match_re ? matchoff : 0 , !match_no_ic )
2297+
2298+ heuristic = help_heuristic (tagp .tagname ,
2299+ match_re ? matchoff : 0 , !match_no_ic );
22992300#ifdef FEAT_MULTI_LANG
2300- + help_pri
2301+ heuristic += help_pri ;
23012302#endif
2302- );
2303+ sprintf ((char * )p + len + 1 + ML_EXTRA , "%06d" ,
2304+ heuristic );
23032305 }
23042306 * tagp .tagname_end = TAB ;
23052307 }
Original file line number Diff line number Diff line change @@ -2636,12 +2636,12 @@ term_color(char_u *s, int n)
26362636 || STRCMP (s + i + 1 , "%dm" ) == 0 )
26372637 && (s [i ] == '3' || s [i ] == '4' ))
26382638 {
2639- sprintf (buf ,
26402639#ifdef TERMINFO
2641- "%s%s%%p1%%dm" ,
2640+ char * format = "%s%s%%p1%%dm" ;
26422641#else
2643- "%s%s%%dm" ,
2642+ char * format = "%s%s%%dm" ;
26442643#endif
2644+ sprintf (buf , format ,
26452645 i == 2 ? IF_EB ("\033[" , ESC_STR "[" ) : "\233" ,
26462646 s [i ] == '3' ? (n >= 16 ? "38;5;" : "9" )
26472647 : (n >= 16 ? "48;5;" : "10" ));
Original file line number Diff line number Diff line change @@ -768,6 +768,10 @@ static char *(features[]) =
768768
769769static int included_patches [] =
770770{ /* Add new patch number below this line */
771+ /**/
772+ 1819 ,
773+ /**/
774+ 1818 ,
771775/**/
772776 1817 ,
773777/**/
You can’t perform that action at this time.
0 commit comments