@@ -1298,6 +1298,7 @@ ins_compl_files(
12981298 fp = mch_fopen ((char * )files [i ], "r" ); // open dictionary file
12991299 if (flags != DICT_EXACT )
13001300 {
1301+ msg_hist_off = TRUE; // reset in msg_trunc_attr()
13011302 vim_snprintf ((char * )IObuff , IOSIZE ,
13021303 _ ("Scanning dictionary: %s" ), (char * )files [i ]);
13031304 (void )msg_trunc_attr ((char * )IObuff , TRUE, HL_ATTR (HLF_R ));
@@ -2778,6 +2779,7 @@ ins_compl_get_exp(pos_T *ini)
27782779 dict = ins_buf -> b_fname ;
27792780 dict_f = DICT_EXACT ;
27802781 }
2782+ msg_hist_off = TRUE; // reset in msg_trunc_attr()
27812783 vim_snprintf ((char * )IObuff , IOSIZE , _ ("Scanning: %s" ),
27822784 ins_buf -> b_fname == NULL
27832785 ? buf_spname (ins_buf )
@@ -2812,6 +2814,7 @@ ins_compl_get_exp(pos_T *ini)
28122814#endif
28132815 else if (* e_cpt == ']' || * e_cpt == 't' )
28142816 {
2817+ msg_hist_off = TRUE; // reset in msg_trunc_attr()
28152818 type = CTRL_X_TAGS ;
28162819 vim_snprintf ((char * )IObuff , IOSIZE , _ ("Scanning tags." ));
28172820 (void )msg_trunc_attr ((char * )IObuff , TRUE, HL_ATTR (HLF_R ));
@@ -3423,9 +3426,11 @@ ins_compl_next(
34233426 MB_PTR_ADV (s );
34243427 }
34253428 }
3429+ msg_hist_off = TRUE;
34263430 vim_snprintf ((char * )IObuff , IOSIZE , "%s %s%s" , lead ,
34273431 s > compl_shown_match -> cp_fname ? "<" : "" , s );
34283432 msg ((char * )IObuff );
3433+ msg_hist_off = FALSE;
34293434 redraw_cmdline = FALSE; // don't overwrite!
34303435 }
34313436 }
@@ -4105,9 +4110,13 @@ ins_complete(int c, int enable_pum)
41054110 if (edit_submode_extra != NULL )
41064111 {
41074112 if (!p_smd )
4113+ {
4114+ msg_hist_off = TRUE;
41084115 msg_attr ((char * )edit_submode_extra ,
41094116 edit_submode_highl < HLF_COUNT
41104117 ? HL_ATTR (edit_submode_highl ) : 0 );
4118+ msg_hist_off = FALSE;
4119+ }
41114120 }
41124121 else
41134122 msg_clr_cmdline (); // necessary for "noshowmode"
0 commit comments