renderer/metal: re-enable selection awareness for shaping

This commit is contained in:
Mitchell Hashimoto
2024-03-13 10:03:10 -07:00
parent 347c57f061
commit 9eeaa0d0a9

View File

@@ -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.