From: simon Date: Thu, 17 Oct 2002 16:45:17 +0000 (+0000) Subject: This should fix the bug causing Alt-Shift to generate Escape. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/fd02b8c05f488843ebb7a4ff9c1ec494f740b6b9 This should fix the bug causing Alt-Shift to generate Escape. git-svn-id: svn://svn.tartarus.org/sgt/putty@2093 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unix/pterm.c b/unix/pterm.c index 1e80df45..ebdc5a8e 100644 --- a/unix/pterm.c +++ b/unix/pterm.c @@ -432,9 +432,9 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data) output[31] = '\0'; end = strlen(output); if (event->state & GDK_MOD1_MASK) - start = 0; + start = end = 0; else - start = 1; + start = end = 1; /* Control-` is the same as Control-\ (unless gtk has a better idea) */ if (!event->string[0] && event->keyval == '`' &&