fix iterm2 image cursor position
refs: https://github.com/wez/wezterm/issues/3266
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user