mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 21:40:29 +00:00
terminal: cursor position report respects left scroll region with origin
This commit is contained in:
@@ -1611,8 +1611,7 @@ const StreamHandler = struct {
|
||||
x: usize,
|
||||
y: usize,
|
||||
} = if (self.terminal.modes.get(.origin)) .{
|
||||
// TODO: what do we do if cursor is outside scrolling region?
|
||||
.x = self.terminal.screen.cursor.x,
|
||||
.x = self.terminal.screen.cursor.x -| self.terminal.scrolling_region.left,
|
||||
.y = self.terminal.screen.cursor.y -| self.terminal.scrolling_region.top,
|
||||
} else .{
|
||||
.x = self.terminal.screen.cursor.x,
|
||||
|
||||
Reference in New Issue
Block a user