This should fix the bug causing Alt-Shift to generate Escape.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 17 Oct 2002 16:45:17 +0000 (16:45 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 17 Oct 2002 16:45:17 +0000 (16:45 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2093 cda61777-01e9-0310-a592-d414129be87e

unix/pterm.c

index 1e80df4..ebdc5a8 100644 (file)
@@ -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 == '`' &&