mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-08 19:06:36 +00:00
renderer/metal: re-enable selection awareness for shaping
This commit is contained in:
@@ -1639,18 +1639,10 @@ fn rebuildCells(
|
|||||||
// We need to get this row's selection if there is one for proper
|
// We need to get this row's selection if there is one for proper
|
||||||
// run splitting.
|
// run splitting.
|
||||||
const row_selection = sel: {
|
const row_selection = sel: {
|
||||||
// TODO(paged-terminal)
|
const sel = screen.selection orelse break :sel null;
|
||||||
// if (screen.selection) |sel| {
|
const pin = screen.pages.pin(.{ .viewport = .{ .y = y } }) orelse
|
||||||
// const screen_point = (terminal.point.Viewport{
|
break :sel null;
|
||||||
// .x = 0,
|
break :sel sel.containedRow(screen, pin) orelse null;
|
||||||
// .y = y,
|
|
||||||
// }).toScreen(screen);
|
|
||||||
// if (sel.containedRow(screen, screen_point)) |row_sel| {
|
|
||||||
// break :sel row_sel;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
break :sel null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Split our row into runs and shape each one.
|
// Split our row into runs and shape each one.
|
||||||
|
Reference in New Issue
Block a user