feat: add o command in visual block mode

This commit is contained in:
tyru 2018-05-04 07:50:41 +09:00 committed by Jason Poon
parent b56c64a76b
commit dcad524cb5
2 changed files with 8 additions and 1 deletions

View File

@ -1932,7 +1932,7 @@ class CommandBottomScrollFirstChar extends BaseCommand {
@RegisterAction
class CommandGoToOtherEndOfHighlightedText extends BaseCommand {
modes = [ModeName.Visual, ModeName.VisualLine];
modes = [ModeName.Visual, ModeName.VisualLine, ModeName.VisualBlock];
keys = ['o'];
public async exec(position: Position, vimState: VimState): Promise<VimState> {

View File

@ -152,4 +152,11 @@ suite('Mode Visual Block', () => {
keysPressed: '<C-v>$4jAaa<Esc>',
end: ['Doga|a', 'Angryaa', 'Dogaa', 'Angryaa', 'Dogaa'],
});
newTest({
title: 'o works in visual block mode',
start: ['|foo', 'bar', 'baz'],
keysPressed: '<C-v>jjllold',
end: ['|f', 'b', 'b'],
});
});