mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-23 20:26:09 +03:00
fix(terminal/Screen): selectionString multi-page
Corrected logic for detecting if the current row is the end of the selection. Previous logic was faulty because when I calculated the current page y incorrectly, not realizing that it was already available as `y`.
This commit is contained in:
@ -1433,7 +1433,7 @@ pub fn selectionString(self: *Screen, alloc: Allocator, opts: SelectionString) !
|
||||
}
|
||||
}
|
||||
|
||||
const is_final_row = sel_end.page == chunk.page and sel_end.y == chunk.start + row_count;
|
||||
const is_final_row = chunk.page == sel_end.page and y == sel_end.y;
|
||||
|
||||
if (!is_final_row and
|
||||
(!row.wrap or sel_ordered.rectangle))
|
||||
|
Reference in New Issue
Block a user