File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ rust-version = { workspace = true }
1313[dependencies ]
1414bitflags = { workspace = true }
1515log = { workspace = true }
16- otty-escape = { path = " ../otty-escape" }
16+ otty-escape = { path = " ../otty-escape" , version = " 0.1.0 " }
1717cursor-icon = { workspace = true }
1818unicode-width = " 0.2.2"
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments