summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 06:45:33 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-07 06:45:33 -0800
commitce650661c02d9bf9a0a0c2336973cad15c96f11c (patch)
tree2da138ab1c171125aebece73ea5068cb567896bd
parent413f1669daf65d7178b6cf53485ba81c573b2236 (diff)
downloadreadline-ce650661c02d9bf9a0a0c2336973cad15c96f11c.tar.gz
readline-ce650661c02d9bf9a0a0c2336973cad15c96f11c.tar.bz2
readline-ce650661c02d9bf9a0a0c2336973cad15c96f11c.zip
applied patch readline52-011
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index b91548e..4206a3e 100644
--- a/input.c
+++ b/input.c
@@ -154,7 +154,7 @@ _rl_unget_char (key)
{
pop_index--;
if (pop_index < 0)
- pop_index = ibuffer_len - 1;
+ pop_index = ibuffer_len;
ibuffer[pop_index] = key;
return (1);
}