mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 09:16:11 +03:00
terminal: selection should use pin iterators
This commit is contained in:
@ -382,11 +382,7 @@ pub fn adjust(
|
|||||||
},
|
},
|
||||||
|
|
||||||
.left => {
|
.left => {
|
||||||
var it = s.pages.cellIterator(
|
var it = end_pin.cellIterator(.left_up, null);
|
||||||
.left_up,
|
|
||||||
.{ .screen = .{} },
|
|
||||||
s.pages.pointFromPin(.screen, end_pin.*).?,
|
|
||||||
);
|
|
||||||
_ = it.next();
|
_ = it.next();
|
||||||
while (it.next()) |next| {
|
while (it.next()) |next| {
|
||||||
const rac = next.rowAndCell();
|
const rac = next.rowAndCell();
|
||||||
@ -400,11 +396,7 @@ pub fn adjust(
|
|||||||
.right => {
|
.right => {
|
||||||
// Step right, wrapping to the next row down at the start of each new line,
|
// Step right, wrapping to the next row down at the start of each new line,
|
||||||
// until we find a non-empty cell.
|
// until we find a non-empty cell.
|
||||||
var it = s.pages.cellIterator(
|
var it = end_pin.cellIterator(.right_down, null);
|
||||||
.right_down,
|
|
||||||
s.pages.pointFromPin(.screen, end_pin.*).?,
|
|
||||||
null,
|
|
||||||
);
|
|
||||||
_ = it.next();
|
_ = it.next();
|
||||||
while (it.next()) |next| {
|
while (it.next()) |next| {
|
||||||
const rac = next.rowAndCell();
|
const rac = next.rowAndCell();
|
||||||
|
Reference in New Issue
Block a user