mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-11 12:25:59 +03:00
fixes #2846
This commit is contained in:
parent
ba514a24fe
commit
f29b8ba8bf
@ -541,6 +541,7 @@ class MoveDownNonBlank extends BaseMovement {
|
||||
vimState: VimState,
|
||||
count: number
|
||||
): Promise<Position | IMovement> {
|
||||
vimState.currentRegisterMode = RegisterMode.LineWise;
|
||||
return position.getDownByCount(Math.max(count, 1)).getFirstLineNonBlankChar();
|
||||
}
|
||||
}
|
||||
@ -554,6 +555,7 @@ class MoveUpNonBlank extends BaseMovement {
|
||||
vimState: VimState,
|
||||
count: number
|
||||
): Promise<Position | IMovement> {
|
||||
vimState.currentRegisterMode = RegisterMode.LineWise;
|
||||
return position.getUpByCount(Math.max(count, 1)).getFirstLineNonBlankChar();
|
||||
}
|
||||
}
|
||||
|
@ -1479,6 +1479,20 @@ suite('Mode Normal', () => {
|
||||
end: ['|three'],
|
||||
});
|
||||
|
||||
newTest({
|
||||
title: 'can delete with + motion and count',
|
||||
start: ['one', 'two', 'three', 'fo|ur', 'five', 'six', 'seven'],
|
||||
keysPressed: 'd2+',
|
||||
end: ['one', 'two', 'three', '|seven'],
|
||||
});
|
||||
|
||||
newTest({
|
||||
title: 'can delete with - motion and count',
|
||||
start: ['one', 'two', 'three', 'four', 'five', 's|ix', 'seven'],
|
||||
keysPressed: 'd3-',
|
||||
end: ['one', 'two', '|seven'],
|
||||
});
|
||||
|
||||
newTest({
|
||||
title: 'can dE correctly',
|
||||
start: ['|one two three'],
|
||||
|
Loading…
Reference in New Issue
Block a user