Michael Schröder
30873a6ffb
OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=30
32 lines
846 B
Diff
32 lines
846 B
Diff
commit ae3e007da3f50e9f4e3c4244e12fce5fcd3774db
|
|
Author: Michael Schroeder <mls@suse.de>
|
|
Date: Tue Aug 7 17:05:15 2012 +0200
|
|
|
|
make ^A DEL work again
|
|
|
|
It was broken because we discarded all mapped sequences. Now we
|
|
let sequences with length 1 through to ProcessInput2.
|
|
|
|
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;
|