Ensure options exists in autoIndentBufferRows

This commit is contained in:
Andrew Dupont 2023-04-18 11:11:17 -07:00
parent 8418c06a47
commit 1273008bca

View File

@ -5670,7 +5670,7 @@ module.exports = class TextEditor {
//
// * startRow - The row {Number} to start at
// * endRow - The row {Number} to end at
autoIndentBufferRows(startRow, endRow, options) {
autoIndentBufferRows(startRow, endRow, options = {}) {
const languageMode = this.buffer.getLanguageMode();
let lastRowIndented = startRow - 1;
if (languageMode.suggestedIndentForBufferRows) {