diff --git a/test/mode/modeNormal.test.ts b/test/mode/modeNormal.test.ts index bc681cecca5..0fc2620a17b 100644 --- a/test/mode/modeNormal.test.ts +++ b/test/mode/modeNormal.test.ts @@ -1839,6 +1839,14 @@ suite('Mode Normal', () => { endMode: ModeName.Insert, }); + newTest({ + title: 'Resets cursor to indent end with cc', + start: ['{', ' | int a;'], + keysPressed: 'cc', + end: ['{', ' |'], + endMode: ModeName.Insert, + }); + newTest({ title: "can handle 'cc' on empty line", start: ['foo', '|', 'bar'], @@ -1901,10 +1909,10 @@ suite('Mode Normal', () => { }); newTest({ - title: 'cc on whitespace-only line clears line', + title: 'cc on whitespace-only treats whitespace as indent', start: ['| '], keysPressed: 'cc', - end: ['|'], + end: [' |'], }); newTest({