mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-11-10 10:58:33 +03:00
Fixes #1518
This commit is contained in:
parent
ad81b13663
commit
fa7df0cb55
@ -456,7 +456,7 @@ export class ChangeOperator extends BaseOperator {
|
||||
|
||||
public async runRepeat(vimState: VimState, position: Position, count: number): Promise<VimState> {
|
||||
const lineIsAllWhitespace = TextEditor.getLineAt(position).text.trim() === "";
|
||||
vimState.currentRegisterMode = RegisterMode.CharacterWise;
|
||||
vimState.currentRegisterMode = RegisterMode.LineWise;
|
||||
if (lineIsAllWhitespace) {
|
||||
return this.run(vimState, position.getLineBegin(), position.getDownByCount(Math.max(0, count - 1)).getLineEnd());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user