Honor the isLineNumberGutterVisible option

This commit is contained in:
Nathan Sobo
2017-03-16 21:48:07 -06:00
committed by Antonio Scandurra
parent 88b30bc4dc
commit 36f5262f40
2 changed files with 10 additions and 1 deletions

View File

@@ -240,11 +240,14 @@ class TextEditorComponent {
}
renderLineNumberGutter () {
const model = this.getModel()
if (!model.isLineNumberGutterVisible()) return null
if (this.currentFrameLineNumberGutterProps) {
return $(LineNumberGutterComponent, this.currentFrameLineNumberGutterProps)
}
const model = this.getModel()
const maxLineNumberDigits = Math.max(2, model.getLineCount().toString().length)
if (this.measurements) {