@@ -450,7 +450,7 @@ impl Vim {
450450 prior_selections,
451451 prior_operator : self . operator_stack . last ( ) . cloned ( ) ,
452452 prior_mode : self . mode ,
453- is_helix_regex_search : true ,
453+ helix_select : true ,
454454 }
455455 } ) ;
456456 }
@@ -1278,24 +1278,6 @@ mod test {
12781278 cx. assert_state ( "«one ˇ»two" , Mode :: HelixSelect ) ;
12791279 }
12801280
1281- #[ gpui:: test]
1282- async fn test_exit_visual_mode ( cx : & mut gpui:: TestAppContext ) {
1283- let mut cx = VimTestContext :: new ( cx, true ) . await ;
1284-
1285- cx. set_state ( "ˇone two" , Mode :: Normal ) ;
1286- cx. simulate_keystrokes ( "v w" ) ;
1287- cx. assert_state ( "«one tˇ»wo" , Mode :: Visual ) ;
1288- cx. simulate_keystrokes ( "escape" ) ;
1289- cx. assert_state ( "one ˇtwo" , Mode :: Normal ) ;
1290-
1291- cx. enable_helix ( ) ;
1292- cx. set_state ( "ˇone two" , Mode :: HelixNormal ) ;
1293- cx. simulate_keystrokes ( "v w" ) ;
1294- cx. assert_state ( "«one ˇ»two" , Mode :: HelixSelect ) ;
1295- cx. simulate_keystrokes ( "escape" ) ;
1296- cx. assert_state ( "«one ˇ»two" , Mode :: HelixNormal ) ;
1297- }
1298-
12991281 #[ gpui:: test]
13001282 async fn test_helix_select_regex ( cx : & mut gpui:: TestAppContext ) {
13011283 let mut cx = VimTestContext :: new ( cx, true ) . await ;
@@ -1315,47 +1297,9 @@ mod test {
13151297 cx. simulate_keystrokes ( "enter" ) ;
13161298 cx. assert_state ( "«oneˇ» two «oneˇ»" , Mode :: HelixNormal ) ;
13171299
1318- // TODO: change "search_in_selection" to not perform any search when in helix select mode with no selection
1319- // cx.set_state("ˇstuff one two one", Mode::HelixNormal);
1320- // cx.simulate_keystrokes("s o n e enter");
1321- // cx.assert_state("ˇstuff one two one", Mode::HelixNormal);
1322- }
1323-
1324- #[ gpui:: test]
1325- async fn test_helix_select_next_match ( cx : & mut gpui:: TestAppContext ) {
1326- let mut cx = VimTestContext :: new ( cx, true ) . await ;
1327-
1328- cx. set_state ( "ˇhello two one two one two one" , Mode :: Visual ) ;
1329- cx. simulate_keystrokes ( "/ o n e" ) ;
1330- cx. simulate_keystrokes ( "enter" ) ;
1331- cx. simulate_keystrokes ( "n n" ) ;
1332- cx. assert_state ( "«hello two one two one two oˇ»ne" , Mode :: Visual ) ;
1333-
1334- cx. set_state ( "ˇhello two one two one two one" , Mode :: Normal ) ;
1335- cx. simulate_keystrokes ( "/ o n e" ) ;
1336- cx. simulate_keystrokes ( "enter" ) ;
1337- cx. simulate_keystrokes ( "n n" ) ;
1338- cx. assert_state ( "hello two one two one two ˇone" , Mode :: Normal ) ;
1339-
1340- cx. set_state ( "ˇhello two one two one two one" , Mode :: Normal ) ;
1341- cx. simulate_keystrokes ( "/ o n e" ) ;
1342- cx. simulate_keystrokes ( "enter" ) ;
1343- cx. simulate_keystrokes ( "n g n g n" ) ;
1344- cx. assert_state ( "hello two one two «one two oneˇ»" , Mode :: Visual ) ;
1345-
1346- cx. enable_helix ( ) ;
1347-
1348- cx. set_state ( "ˇhello two one two one two one" , Mode :: HelixNormal ) ;
1349- cx. simulate_keystrokes ( "/ o n e" ) ;
1350- cx. simulate_keystrokes ( "enter" ) ;
1351- cx. simulate_keystrokes ( "n n" ) ;
1352- cx. assert_state ( "hello two one two one two «oneˇ»" , Mode :: HelixNormal ) ;
1353-
1354- cx. set_state ( "ˇhello two one two one two one" , Mode :: HelixSelect ) ;
1355- cx. simulate_keystrokes ( "/ o n e" ) ;
1356- cx. simulate_keystrokes ( "enter" ) ;
1357- cx. simulate_keystrokes ( "n n" ) ;
1358- cx. assert_state ( "ˇhello two «oneˇ» two «oneˇ» two «oneˇ»" , Mode :: HelixSelect ) ;
1300+ cx. set_state ( "ˇone two one" , Mode :: HelixNormal ) ;
1301+ cx. simulate_keystrokes ( "s o n e enter" ) ;
1302+ cx. assert_state ( "ˇone two one" , Mode :: HelixNormal ) ;
13591303 }
13601304
13611305 #[ gpui:: test]
0 commit comments