# HG changeset patch # User vimboss # Date 1119911150 0 # Node ID bda4394122e05d8816f4ade578c4ae1ae25bb569 # Parent 5332dd13733cd57e814b7e21cb577f6ad0c15408 updated for version 7.0095 diff --git a/src/getchar.c b/src/getchar.c --- a/src/getchar.c +++ b/src/getchar.c @@ -1411,6 +1411,19 @@ using_script() #endif /* + * This function is called just before doing a blocking wait. Thus after + * waiting 'updatetime' for a character to arrive. + */ + void +before_blocking() +{ + updatescript(0); +#ifdef FEAT_EVAL + garbage_collect(); +#endif +} + +/* * updatescipt() is called when a character can be written into the script file * or when we have waited some time for a character (c == 0) *