@@ -247,7 +247,7 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
247247 // like 'editor.action.smartSelect.grow' are handled.
248248 if ( this . vimState . currentMode === Mode . Visual ) {
249249 Logger . trace ( 'Updating Visual Selection!' ) ;
250- this . vimState . cursors [ 0 ] = Cursor . fromSelection ( selection ) ;
250+ this . vimState . cursor = Cursor . fromSelection ( selection ) ;
251251 this . updateView ( { drawSelection : false , revealRange : false } ) ;
252252
253253 // Store selection for commands like gv
@@ -259,7 +259,7 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
259259 return ;
260260 } else if ( ! selection . active . isEqual ( selection . anchor ) ) {
261261 Logger . trace ( 'Creating Visual Selection from command!' ) ;
262- this . vimState . cursors [ 0 ] = Cursor . fromSelection ( selection ) ;
262+ this . vimState . cursor = Cursor . fromSelection ( selection ) ;
263263 await this . setCurrentMode ( Mode . Visual ) ;
264264 this . updateView ( { drawSelection : false , revealRange : false } ) ;
265265
@@ -322,7 +322,7 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
322322 selection . active
323323 } `,
324324 ) ;
325- this . vimState . cursors [ 0 ] = Cursor . fromSelection ( selection ) ;
325+ this . vimState . cursor = Cursor . fromSelection ( selection ) ;
326326 this . vimState . desiredColumn = selection . active . character ;
327327 this . updateView ( { drawSelection : false , revealRange : false } ) ;
328328 }
@@ -1434,7 +1434,7 @@ export class ModeHandler implements vscode.Disposable, IModeHandler {
14341434 if ( isLastCursorTracked ) {
14351435 cursorToTrack = this . vimState . cursors . at ( - 1 ) ! ;
14361436 } else {
1437- cursorToTrack = this . vimState . cursors [ 0 ] ;
1437+ cursorToTrack = this . vimState . cursor ;
14381438 }
14391439
14401440 const isCursorAboveRange = ( visibleRange : vscode . Range ) : boolean =>
0 commit comments