File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -386,8 +386,8 @@ VisualMode.prototype.movements = {
386
386
"Y" ( count ) { this . movement . selectLine ( count ) ; return this . yank ( ) ; } ,
387
387
"p" ( ) { return chrome . runtime . sendMessage ( { handler : "openUrlInCurrentTab" , url : this . yank ( ) } ) ; } ,
388
388
"P" ( ) { return chrome . runtime . sendMessage ( { handler : "openUrlInNewTab" , url : this . yank ( ) } ) ; } ,
389
- "v" ( ) { return new VisualMode ; } ,
390
- "V" ( ) { return new VisualLineMode ; } ,
389
+ "v" ( ) { return new VisualMode ( ) . init ( ) ; } ,
390
+ "V" ( ) { return new VisualLineMode ( ) . init ( ) ; } ,
391
391
"c" ( ) {
392
392
// If we're already in caret mode, or if the selection looks the same as it would in caret mode, then
393
393
// callapse to anchor (so that the caret-mode selection will seem unchanged). Otherwise, we're in visual
@@ -396,7 +396,7 @@ VisualMode.prototype.movements = {
396
396
this . movement . collapseSelectionToAnchor ( ) ;
397
397
else
398
398
this . movement . collapseSelectionToFocus ( ) ;
399
- return new CaretMode ;
399
+ return new CaretMode ( ) . init ( ) ;
400
400
} ,
401
401
"o" ( ) { return this . movement . reverseSelection ( ) ; }
402
402
} ;
You can’t perform that action at this time.
0 commit comments