mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.065
Problem: When recording, the character typed at the hit-enter prompt is recorded twice. (Urtica Dioica) Solution: Avoid recording the character twice. (Christian Brabandt)
This commit is contained in:
parent
d9820538bd
commit
332a2cadcd
@ -887,6 +887,8 @@ wait_return(redraw)
|
|||||||
int oldState;
|
int oldState;
|
||||||
int tmpState;
|
int tmpState;
|
||||||
int had_got_int;
|
int had_got_int;
|
||||||
|
int save_Recording;
|
||||||
|
FILE *save_scriptout;
|
||||||
|
|
||||||
if (redraw == TRUE)
|
if (redraw == TRUE)
|
||||||
must_redraw = CLEAR;
|
must_redraw = CLEAR;
|
||||||
@ -957,11 +959,21 @@ wait_return(redraw)
|
|||||||
* typeahead buffer. */
|
* typeahead buffer. */
|
||||||
++no_mapping;
|
++no_mapping;
|
||||||
++allow_keys;
|
++allow_keys;
|
||||||
|
|
||||||
|
/* Temporarily disable Recording. If Recording is active, the
|
||||||
|
* character will be recorded later, since it will be added to the
|
||||||
|
* typebuf after the loop */
|
||||||
|
save_Recording = Recording;
|
||||||
|
save_scriptout = scriptout;
|
||||||
|
Recording = FALSE;
|
||||||
|
scriptout = NULL;
|
||||||
c = safe_vgetc();
|
c = safe_vgetc();
|
||||||
if (had_got_int && !global_busy)
|
if (had_got_int && !global_busy)
|
||||||
got_int = FALSE;
|
got_int = FALSE;
|
||||||
--no_mapping;
|
--no_mapping;
|
||||||
--allow_keys;
|
--allow_keys;
|
||||||
|
Recording = save_Recording;
|
||||||
|
scriptout = save_scriptout;
|
||||||
|
|
||||||
#ifdef FEAT_CLIPBOARD
|
#ifdef FEAT_CLIPBOARD
|
||||||
/* Strange way to allow copying (yanking) a modeless selection at
|
/* Strange way to allow copying (yanking) a modeless selection at
|
||||||
|
@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
65,
|
||||||
/**/
|
/**/
|
||||||
64,
|
64,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user