fix iterm2 image cursor position

refs: https://github.com/wez/wezterm/issues/3266
This commit is contained in:
Wez Furlong committed 2023-03-16 21:53:13 -07:00
1 parent 6237668a14
commit a115fc0df7
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -138,6 +138,8 @@ As features stabilize some brief notes about them will accumulate here.
* Default [hyperlink_rules](config/lua/config/hyperlink_rules.md) now match
URLs with port numbers
[#928](https://github.com/wez/wezterm/issues/928)
* Incorrect cursor position after processing iTerm2 image escape sequence
[#3266](https://github.com/wez/wezterm/issues/3266)
#### Changed
* `CTRL-SHIFT-P` now activates the new [command
+2 -2
View File
@@ -196,7 +196,7 @@ impl TerminalState {
xpos += x_delta;
}
ypos += y_delta;
if !params.do_not_move_cursor {
if !params.do_not_move_cursor && y < height_in_cells - 1 {
self.new_line(false);
}
}
@@ -213,7 +213,7 @@ impl TerminalState {
if bottom_right {
self.set_cursor_pos(
&Position::Relative(width_in_cells as i64),
&Position::Relative(-1),
&Position::Relative(0),
);
}
}