mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Pass tabLength to getFoldableRangeContainingPoint
This commit is contained in:
@@ -3751,7 +3751,7 @@ class TextEditor {
|
||||
const languageMode = this.buffer.getLanguageMode()
|
||||
const range = (
|
||||
languageMode.getFoldableRangeContainingPoint &&
|
||||
languageMode.getFoldableRangeContainingPoint(Point(row, Infinity))
|
||||
languageMode.getFoldableRangeContainingPoint(Point(row, Infinity), this.getTabLength())
|
||||
)
|
||||
if (range) return this.displayLayer.foldBufferRange(range)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user