comparison src/gui.c @ 609:ba54311bc43e

updated for version 7.0173
author vimboss
date Sun, 18 Dec 2005 22:02:33 +0000
parents 25a70b1cd2da
children ce5a759cc907
comparison
equal deleted inserted replaced
608:def07088c90e 609:ba54311bc43e
2651 * K_CURSORHOLD key in the input buffer. 2651 * K_CURSORHOLD key in the input buffer.
2652 */ 2652 */
2653 if (gui_mch_wait_for_chars(p_ut) == OK) 2653 if (gui_mch_wait_for_chars(p_ut) == OK)
2654 retval = OK; 2654 retval = OK;
2655 #ifdef FEAT_AUTOCMD 2655 #ifdef FEAT_AUTOCMD
2656 else if (!did_cursorhold && has_cursorhold() 2656 else if (trigger_cursorhold())
2657 && get_real_state() == NORMAL_BUSY)
2658 { 2657 {
2659 char_u buf[3]; 2658 char_u buf[3];
2660 2659
2661 /* Put K_CURSORHOLD in the input buffer. */ 2660 /* Put K_CURSORHOLD in the input buffer. */
2662 buf[0] = CSI; 2661 buf[0] = CSI;
4637 /* A button was pressed thus undo should be synced. */ 4636 /* A button was pressed thus undo should be synced. */
4638 if (no_u_sync == 0) 4637 if (no_u_sync == 0)
4639 u_sync(); 4638 u_sync();
4640 4639
4641 del_bytes((long)(regmatch.endp[0] - regmatch.startp[0]), 4640 del_bytes((long)(regmatch.endp[0] - regmatch.startp[0]),
4642 FALSE); 4641 FALSE, FALSE);
4643 ins_str(repl_text); 4642 ins_str(repl_text);
4644 } 4643 }
4645 } 4644 }
4646 else 4645 else
4647 MSG(_("No match at cursor, finding next")); 4646 MSG(_("No match at cursor, finding next"));