Fix from RDB: patch up mis-aimed fallthroughs in a terminal
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 19 May 2001 11:34:20 +0000 (11:34 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 19 May 2001 11:34:20 +0000 (11:34 +0000)
emulation switch. (Bug was introduced in mouse reporting.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1134 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 80d66dc..9f623e5 100644 (file)
@@ -1539,18 +1539,20 @@ void term_out(void)
                        break;
                      case 'e':       /* move down N lines */
                        compatibility(ANSI);
+                       /* FALLTHROUGH */
                      case 'B':
                        move(curs.x, curs.y + def(esc_args[0], 1), 1);
                        seen_disp_event = TRUE;
                        break;
-                     case 'a':       /* move right N cols */
-                       compatibility(ANSI);
                      case ANSI('c', '>'):      /* report xterm version */
                        compatibility(OTHER);
                        /* this reports xterm version 136 so that VIM can
                           use the drag messages from the mouse reporting */
                        ldisc_send("\033[>0;136;0c", 11);
                        break;
+                     case 'a':       /* move right N cols */
+                       compatibility(ANSI);
+                       /* FALLTHROUGH */
                      case 'C':
                        move(curs.x + def(esc_args[0], 1), curs.y, 1);
                        seen_disp_event = TRUE;