Skip to content

Commit c5b49a8

Browse files
committed
poc
1 parent f0ca225 commit c5b49a8

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

otty-escape/src/csi.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ mod tests {
12221222
Action::MoveForward(3),
12231223
Action::MoveForward(4),
12241224
Action::MoveBackward(2),
1225-
Action::GotoRow(3),
1225+
Action::GotoRow(2),
12261226
Action::MoveDown {
12271227
rows: 1,
12281228
carrage_return_needed: true,
@@ -1231,10 +1231,10 @@ mod tests {
12311231
rows: 2,
12321232
carrage_return_needed: true,
12331233
},
1234-
Action::GotoColumn(10),
1235-
Action::GotoColumn(6),
1236-
Action::Goto(5, 9),
1237-
Action::Goto(3, 4)
1234+
Action::GotoColumn(9),
1235+
Action::GotoColumn(5),
1236+
Action::Goto(4, 8),
1237+
Action::Goto(2, 3)
12381238
]
12391239
);
12401240
}

otty-surface/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ rust-version = { workspace = true }
1313
[dependencies]
1414
bitflags = { workspace = true }
1515
log = { workspace = true }
16-
otty-escape = { path = "../otty-escape" }
16+
otty-escape = { path = "../otty-escape", version = "0.1.0" }
1717
cursor-icon = { workspace = true }
1818
unicode-width = "0.2.2"

otty-surface/src/surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,7 @@ impl TabStops {
21792179
fn resize(&mut self, columns: usize) {
21802180
let mut index = self.tabs.len();
21812181
self.tabs.resize_with(columns, || {
2182-
let is_tabstop = index % INITIAL_TABSTOPS == 0;
2182+
let is_tabstop = index.is_multiple_of(INITIAL_TABSTOPS);
21832183
index += 1;
21842184
is_tabstop
21852185
});

0 commit comments

Comments
 (0)