File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -386,8 +386,8 @@ VisualMode.prototype.movements = {
386386 "Y" ( count ) { this . movement . selectLine ( count ) ; return this . yank ( ) ; } ,
387387 "p" ( ) { return chrome . runtime . sendMessage ( { handler : "openUrlInCurrentTab" , url : this . yank ( ) } ) ; } ,
388388 "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 ( ) ; } ,
391391 "c" ( ) {
392392 // If we're already in caret mode, or if the selection looks the same as it would in caret mode, then
393393 // callapse to anchor (so that the caret-mode selection will seem unchanged). Otherwise, we're in visual
@@ -396,7 +396,7 @@ VisualMode.prototype.movements = {
396396 this . movement . collapseSelectionToAnchor ( ) ;
397397 else
398398 this . movement . collapseSelectionToFocus ( ) ;
399- return new CaretMode ;
399+ return new CaretMode ( ) . init ( ) ;
400400 } ,
401401 "o" ( ) { return this . movement . reverseSelection ( ) ; }
402402} ;
You can’t perform that action at this time.
0 commit comments