File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const rmFirst = (a) => {
21
21
22
22
const noop = ( ) => { } ;
23
23
24
- module . exports = ( key , operations ) => {
24
+ module . exports = ( key , operations = { } ) => {
25
25
const prevStore = store ( ) ;
26
26
const isVisual = visual ( ) ;
27
27
const value = store ( prevStore . concat ( key ) ) ;
@@ -169,6 +169,9 @@ module.exports = (key, operations) => {
169
169
findPrevious ( ) ;
170
170
return end ( ) ;
171
171
}
172
+
173
+ if ( key === ' ' )
174
+ return end ( ) ;
172
175
} ;
173
176
174
177
function handleDelete ( prevStore ) {
Original file line number Diff line number Diff line change @@ -11,6 +11,24 @@ test('vim: no operations', (t) => {
11
11
t . end ( ) ;
12
12
} ) ;
13
13
14
+ test ( 'vim: space' , ( t ) => {
15
+ const moveNext = stub ( ) ;
16
+
17
+ vim ( ' ' ) ;
18
+ vim ( 'j' , {
19
+ moveNext,
20
+ } ) ;
21
+
22
+ const args = [ {
23
+ count : 1 ,
24
+ isDelete : false ,
25
+ isVisual : false ,
26
+ } ] ;
27
+
28
+ t . calledWith ( moveNext , args ) ;
29
+ t . end ( ) ;
30
+ } ) ;
31
+
14
32
test ( 'vim: ^' , ( t ) => {
15
33
const movePrevious = stub ( ) ;
16
34
You can’t perform that action at this time.
0 commit comments