Skip to content

Commit 9ece2f5

Browse files
committed
Moving lines beyond the first nonempty line now uses indent 0.
1 parent b59f989 commit 9ece2f5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/vs/editor/common/modes/languageConfigurationRegistry.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,18 @@ export class LanguageConfigurationRegistryImpl {
319319
}
320320

321321
if (lineNumber <= 1) {
322-
return null;
322+
return {
323+
indentation: '',
324+
action: null
325+
};
323326
}
324327

325328
let precedingUnIgnoredLine = this.getPrecedingValidLine(model, lineNumber, indentRulesSupport);
326329
if (precedingUnIgnoredLine < 1) {
327-
return null;
330+
return {
331+
indentation: '',
332+
action: null
333+
};
328334
}
329335

330336
let precedingUnIgnoredLineContent = model.getLineContent(precedingUnIgnoredLine);

0 commit comments

Comments
 (0)