fix: Indent after pressing enter on a blank line

This commit is contained in:
DropDemBits 2023-07-06 23:25:02 -04:00
parent 924d277f32
commit ebaf8c8135
No known key found for this signature in database
GPG Key ID: 7FE02A6C1EDFA075

View File

@ -99,7 +99,8 @@ export class Config {
let onEnterRules: vscode.OnEnterRule[] = [ let onEnterRules: vscode.OnEnterRule[] = [
{ {
// Carry indentation from the previous line // Carry indentation from the previous line
beforeText: /^\s*$/, // if it's only whitespace
beforeText: /^\s+$/,
action: { indentAction: vscode.IndentAction.None }, action: { indentAction: vscode.IndentAction.None },
}, },
{ {