Skip to content

Commit

Permalink
Desktop: Enforce that whitespace check for unindent checks the begini…
Browse files Browse the repository at this point in the history
…ng of a (#3515)
  • Loading branch information
CalebJohn authored Jul 22, 2020
1 parent 1d79ded commit 0fa8dfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function useListIdent(CodeMirror: any) {
let start = listTokens[0].start;
const token = extractListToken(line);

if (listTokens.length > 1 && listTokens[0].string.match(/\s/)) {
if (listTokens.length > 1 && listTokens[0].string.match(/^\s/)) {
start = listTokens[1].start;
}

Expand Down

0 comments on commit 0fa8dfa

Please sign in to comment.