Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 2d0361a

Browse files
committed
Remove an invalid call from the Stylus mode
FIX: Fix a crash in the Stylus mode's indentation logic. Closes codemirror/dev#1550
1 parent 164773e commit 2d0361a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mode/stylus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ export const stylus = {
716716
} else if (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ch) || wordIsTag(lineFirstWord)) {
717717
if (/\,\s*$/.test(prevLineFirstWord)) {
718718
indent = prevLineIndent;
719-
} else if (!state.sol() && (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(prevLineFirstWord) || wordIsTag(prevLineFirstWord))) {
719+
} else if (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(prevLineFirstWord) || wordIsTag(prevLineFirstWord)) {
720720
indent = lineIndent <= prevLineIndent ? prevLineIndent : prevLineIndent + iCx.unit;
721721
} else {
722722
indent = lineIndent;

0 commit comments

Comments
 (0)