version 1.3, 1996/09/21 23:12:32 |
version 1.4, 1996/10/14 03:55:10 |
|
|
emsg_on_display = FALSE; /* may remove error message now */ |
emsg_on_display = FALSE; /* may remove error message now */ |
|
|
c = vgetc(); |
c = vgetc(); |
if (c == Ctrl('C')) |
|
|
/* |
|
* Ignore got_int when CTRL-C was typed here. |
|
* Don't ignore it in :global, we really need to break then. |
|
*/ |
|
if (c == Ctrl('C') && !global_busy) |
got_int = FALSE; |
got_int = FALSE; |
|
|
#ifdef RIGHTLEFT |
#ifdef RIGHTLEFT |
|
|
(p_ws || done_dir == BOTH_DIRECTIONS)) |
(p_ws || done_dir == BOTH_DIRECTIONS)) |
{ |
{ |
edit_submode_extra = e_patnotf; |
edit_submode_extra = e_patnotf; |
edit_submode_highl = TRUE; |
edit_submode_highl = 'e'; |
} |
} |
else if (curr_match != NULL && complete_direction == FORWARD && |
else if (curr_match != NULL && complete_direction == FORWARD && |
curr_match->next != NULL) |
curr_match->next != NULL) |
|
|
else if (tot == 0) |
else if (tot == 0) |
{ |
{ |
edit_submode_extra = e_patnotf; |
edit_submode_extra = e_patnotf; |
edit_submode_highl = TRUE; |
edit_submode_highl = 'e'; |
} |
} |
} |
} |
|
|
/* eat the ESC to avoid leaving insert mode */ |
/* eat the ESC to avoid leaving insert mode */ |
if (got_int) |
if (got_int && !global_busy) |
{ |
{ |
(void)vgetc(); |
(void)vgetc(); |
got_int = FALSE; |
got_int = FALSE; |
|
|
if (curr_match == NULL || curr_match->original) |
if (curr_match == NULL || curr_match->original) |
{ |
{ |
edit_submode_extra = (char_u *)"Back at original"; |
edit_submode_extra = (char_u *)"Back at original"; |
edit_submode_highl = TRUE; |
edit_submode_highl = 'w'; |
} |
} |
else if (first_match != NULL && |
else if (first_match != NULL && |
first_match->next != NULL && |
first_match->next != NULL && |
|
|
first_match->next->original)) |
first_match->next->original)) |
{ |
{ |
edit_submode_extra = (char_u *)"(the only match)"; |
edit_submode_extra = (char_u *)"(the only match)"; |
edit_submode_highl = FALSE; |
edit_submode_highl = NUL; |
} |
} |
} |
} |
|
|
|
|
/* |
/* |
* If there's any pending input, grab up to INPUT_BUFLEN at once. |
* If there's any pending input, grab up to INPUT_BUFLEN at once. |
* This speeds up normal text input considerably. |
* This speeds up normal text input considerably. |
|
* Don't do this when 'cindent' is set, because we might need to re-indent |
|
* at a ':', or any other character. |
*/ |
*/ |
#define INPUT_BUFLEN 100 |
#define INPUT_BUFLEN 100 |
if (!ISSPECIAL(c) && vpeekc() != NUL && State != REPLACE |
if (!ISSPECIAL(c) && vpeekc() != NUL && State != REPLACE |
|
#ifdef CINDENT |
|
&& !curbuf->b_p_cin |
|
#endif |
#ifdef RIGHTLEFT |
#ifdef RIGHTLEFT |
&& !p_ri |
&& !p_ri |
#endif |
#endif |
) |
) |
{ |
{ |