This updates the autoIndentCallback to also take the line number of the new line we're opening - this is because sometimes just the current line and previous line contents are not enough to determine indentation level. Passing the lnum allows us to query previous lines, too.
This updates the
autoIndentCallback
to also take the line number of the new line we're opening - this is because sometimes just the current line and previous line contents are not enough to determine indentation level. Passing thelnum
allows us to query previous lines, too.