summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-27 22:25:50 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-27 22:25:50 +0000
commit238f4fa79812261a3cbae7fbf7ec1443ef01526a (patch)
tree4ccc954890bda854ac00ac0ae4e6711da72ad751 /src/getchar.c
parentd9fba318b8465da7da0b19ec1b38f9371f46a173 (diff)
updated for version 7.0095
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 686861aa47..311fe584d6 100644
--- 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)
*