diff --git a/protocols/ssh/src/terminal_handlers.c b/protocols/ssh/src/terminal_handlers.c index 8304b4ef..92f78fed 100644 --- a/protocols/ssh/src/terminal_handlers.c +++ b/protocols/ssh/src/terminal_handlers.c @@ -379,6 +379,12 @@ int guac_terminal_csi(guac_terminal* term, char c) { break; + /* G: Move cursor, current row */ + case 'G': + col = argv[0]; if (col != 0) col--; + term->cursor_col = col; + break; + /* H: Move cursor */ case 'H': @@ -389,12 +395,6 @@ int guac_terminal_csi(guac_terminal* term, char c) { term->cursor_col = col; break; - /* G: Move cursor, current row */ - case 'G': - col = argv[0]; if (col != 0) col--; - term->cursor_col = col; - break; - /* J: Erase display */ case 'J':