Skip to content

Commit

Permalink
Merge pull request #416 from Loottoo/master
Browse files Browse the repository at this point in the history
missed a 0 in last fix
  • Loading branch information
Mitcheljager authored Feb 13, 2024
2 parents cc5a3eb + f162426 commit 7d6e2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/src/utils/codemirror/indent.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function indentMultilineInserts({ state, dispatch }, transaction) {
}

const currentLineIndentCount = getIndentCountForText(line)
const totalIndentCount = Math.max(startIndentCount - firstIndentCount + currentLineIndentCount)
const totalIndentCount = Math.max(0, startIndentCount - firstIndentCount + currentLineIndentCount)
const tabs = "\t".repeat(totalIndentCount)

return tabs + line.replace(/^\s+/, "")
Expand Down

0 comments on commit 7d6e2a8

Please sign in to comment.