summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-08-07 17:05:15 +0200
committerMichael Schroeder <mls@suse.de>2012-08-07 17:05:15 +0200
commitae3e007da3f50e9f4e3c4244e12fce5fcd3774db (patch)
tree22c84d6f559ace1016f6d564ec0e9428d6abbf8e
parentdb59704c1297c056cec0cc9305ae92e44a15bf33 (diff)
downloadscreen-ae3e007da3f50e9f4e3c4244e12fce5fcd3774db.tar.gz
make ^A DEL work again
It was broken because we discarded all mapped sequences. Now we let sequences with length 1 through to ProcessInput2.
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index d86c62c..bdf9355 100644
--- a/src/process.c
+++ b/src/process.c
@@ -6472,6 +6472,7 @@ int i;
{
struct action *act;
int discard = 0;
+ int keyno = i;
debug1("StuffKey #%d", i);
#ifdef DEBUG
@@ -6511,6 +6512,9 @@ int i;
if (discard && (!act || act->nr != RC_COMMAND))
{
+ /* if the input was just a single byte we let it through */
+ if (D_tcs[keyno + T_CAPS].str && strlen(D_tcs[keyno + T_CAPS].str) == 1)
+ return -1;
if (D_ESCseen)
{
D_ESCseen = 0;