@@ -2737,25 +2737,41 @@ suite('Mode Normal', () => {
2737
2737
endMode : Mode . Normal ,
2738
2738
} ) ;
2739
2739
2740
- newTest ( {
2741
- title : 'can handle <C-u> when first line is visible and starting column is at the beginning' ,
2742
- start : [ '\t hello world' , 'hello' , 'hi hello' , '|foo' ] ,
2743
- keysPressed : '<C-u>' ,
2744
- end : [ '\t |hello world' , 'hello' , 'hi hello' , 'foo' ] ,
2745
- } ) ;
2740
+ suite ( '<C-u> / <C-d>' , ( ) => {
2741
+ newTest ( {
2742
+ title : 'can handle <C-u> when first line is visible and starting column is at the beginning' ,
2743
+ start : [ '\t hello world' , 'hello' , 'hi hello' , '|foo' ] ,
2744
+ keysPressed : '<C-u>' ,
2745
+ end : [ '\t |hello world' , 'hello' , 'hi hello' , 'foo' ] ,
2746
+ } ) ;
2746
2747
2747
- newTest ( {
2748
- title : 'can handle <C-u> when first line is visible and starting column is at the end' ,
2749
- start : [ '\t hello world' , 'hello' , 'hi hello' , 'very long line at the bottom|' ] ,
2750
- keysPressed : '<C-u>' ,
2751
- end : [ '\t |hello world' , 'hello' , 'hi hello' , 'very long line at the bottom' ] ,
2752
- } ) ;
2748
+ newTest ( {
2749
+ title : 'can handle <C-u> when first line is visible and starting column is at the end' ,
2750
+ start : [ '\t hello world' , 'hello' , 'hi hello' , 'very long line at the bottom|' ] ,
2751
+ keysPressed : '<C-u>' ,
2752
+ end : [ '\t |hello world' , 'hello' , 'hi hello' , 'very long line at the bottom' ] ,
2753
+ } ) ;
2753
2754
2754
- newTest ( {
2755
- title : 'can handle <C-u> when first line is visible and starting column is in the middle' ,
2756
- start : [ '\t hello world' , 'hello' , 'hi hello' , 'very long line |at the bottom' ] ,
2757
- keysPressed : '<C-u>' ,
2758
- end : [ '\t |hello world' , 'hello' , 'hi hello' , 'very long line at the bottom' ] ,
2755
+ newTest ( {
2756
+ title : 'can handle <C-u> when first line is visible and starting column is in the middle' ,
2757
+ start : [ '\t hello world' , 'hello' , 'hi hello' , 'very long line |at the bottom' ] ,
2758
+ keysPressed : '<C-u>' ,
2759
+ end : [ '\t |hello world' , 'hello' , 'hi hello' , 'very long line at the bottom' ] ,
2760
+ } ) ;
2761
+
2762
+ newTest ( {
2763
+ title : '[count]<C-u> sets and adheres to scroll option' ,
2764
+ start : [ 'abc' , 'def' , 'ghi' , 'jkl' , 'mno' , 'pqr' , 'st|u' ] ,
2765
+ keysPressed : '2<C-u><C-u>' ,
2766
+ end : [ 'abc' , 'def' , '|ghi' , 'jkl' , 'mno' , 'pqr' , 'stu' ] ,
2767
+ } ) ;
2768
+
2769
+ newTest ( {
2770
+ title : '[count]<C-d> sets and adheres to scroll option' ,
2771
+ start : [ 'ab|c' , 'def' , 'ghi' , 'jkl' , 'mno' , 'pqr' , 'stu' ] ,
2772
+ keysPressed : '2<C-d><C-d>' ,
2773
+ end : [ 'abc' , 'def' , 'ghi' , 'jkl' , '|mno' , 'pqr' , 'stu' ] ,
2774
+ } ) ;
2759
2775
} ) ;
2760
2776
2761
2777
suite ( '<C-g>' , ( ) => {
0 commit comments