comparison src/gui.c @ 482:6f8b578776ab v7.0131

updated for version 7.0131
author vimboss
date Tue, 16 Aug 2005 23:01:50 +0000
parents a5fcf36ef512
children 381caa3f6ea8
comparison
equal deleted inserted replaced
481:66080ac5dab7 482:6f8b578776ab
4588 garray_T ga; 4588 garray_T ga;
4589 int i; 4589 int i;
4590 int type = (flags & FRD_TYPE_MASK); 4590 int type = (flags & FRD_TYPE_MASK);
4591 char_u *p; 4591 char_u *p;
4592 regmatch_T regmatch; 4592 regmatch_T regmatch;
4593 int save_did_emsg = did_emsg;
4593 4594
4594 ga_init2(&ga, 1, 100); 4595 ga_init2(&ga, 1, 100);
4595 if (type == FRD_REPLACEALL) 4596 if (type == FRD_REPLACEALL)
4596 ga_concat(&ga, (char_u *)"%s/"); 4597 ga_concat(&ga, (char_u *)"%s/");
4597 4598
4664 do_search(NULL, down ? '/' : '?', ga.ga_data, 1L, 4665 do_search(NULL, down ? '/' : '?', ga.ga_data, 1L,
4665 SEARCH_MSG + SEARCH_MARK); 4666 SEARCH_MSG + SEARCH_MARK);
4666 msg_scroll = i; /* don't let an error message set msg_scroll */ 4667 msg_scroll = i; /* don't let an error message set msg_scroll */
4667 } 4668 }
4668 4669
4670 /* Don't want to pass did_emsg to other code, it may cause disabling
4671 * syntax HL if we were busy redrawing. */
4672 did_emsg = save_did_emsg;
4673
4669 if (State & (NORMAL | INSERT)) 4674 if (State & (NORMAL | INSERT))
4670 { 4675 {
4671 gui_update_screen(); /* update the screen */ 4676 gui_update_screen(); /* update the screen */
4672 msg_didout = 0; /* overwrite any message */ 4677 msg_didout = 0; /* overwrite any message */
4673 need_wait_return = FALSE; /* don't wait for return */ 4678 need_wait_return = FALSE; /* don't wait for return */