mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
Honor the isLineNumberGutterVisible option
This commit is contained in:
committed by
Antonio Scandurra
parent
88b30bc4dc
commit
36f5262f40
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user