summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-03 15:30:44 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-03 15:30:44 +0000
commit035aa2263bd46deb14b7bb4781bc1543c6b352a9 (patch)
treeaebf62e5a2e1e4a9a519b41ec4b00863c9a699c1 /Src/Zle
parentbc32da6a676139c51bb5e39b70a4400691600abf (diff)
downloadzsh-035aa2263bd46deb14b7bb4781bc1543c6b352a9.tar.gz
zsh-035aa2263bd46deb14b7bb4781bc1543c6b352a9.tar.xz
zsh-035aa2263bd46deb14b7bb4781bc1543c6b352a9.zip
typo
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 430c4345a..bb5b5156c 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -453,8 +453,8 @@ struct ztmout {
  * timed function.
  *
  * do_keytmout is passed down from getbyte() here.  If it is positive,
- * we the keytimeout value, which is in 100ths of a second (directly set
- * from the parameter).  If it is negative, we use -(do_keytmout+1)
+ * we use the keytimeout value, which is in 100ths of a second (directly
+ * set from the parameter).  If it is negative, we use -(do_keytmout+1)
  * (i.e. the one's complement, to allow a zero value to be set).  This
  * is only used when calling into zle from outside to specify an
  * explicit timeout.  This is also in 100ths of a second.
@@ -1225,6 +1225,8 @@ zleread(char **lp, char **rp, int flags, int context)
     zleline = NULL;
     forget_edits();
     errno = old_errno;
+    /* highlight no longer valid */
+    set_region_highlight(NULL, NULL);
     return s;
 }