mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 14:48:05 +02:00
terminal: Fix unintended fallthrough to cursor restore
ef57a9b788 added support for window operations such as reporting the
title in escape mode. It implemented this by which-window-op case,
inside the existing which-escape-code case. Whilst it would break out of
the former window-op case, it never broke out of the latter escape-code
case. This would lead to window ops (such as reporting title) falling
through to restoring the saved cursor position.
This doesn't seem at all right, and also fixes a warning with GCC 8.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
parent
10fe82fe2d
commit
ee96ce2fc2
1 changed files with 1 additions and 0 deletions
|
|
@ -1686,6 +1686,7 @@ handle_escape(struct terminal *terminal)
|
|||
fprintf(stderr, "Unimplemented windowOp %d\n", args[0]);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'u': /* Restore cursor location */
|
||||
terminal->row = terminal->saved_row;
|
||||
terminal->column = terminal->saved_column;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue