Skip to content

Commit 085d9a9

Browse files
committed
only show profile lines in ed line range
1 parent afb4fe5 commit 085d9a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/editor/highlights.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module.exports =
3535
profileLines: (ls) ->
3636
markers = []
3737
watch = @observeLines ls, (ed, {line, count, classes}) =>
38+
if line < 0 || line > ed.getLineCount()
39+
return
3840
m = ed.markBufferRange [[line, 0], [line, 0]],
3941
invalidate: 'never'
4042
markers.push m

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"repository": "https://github.com/JunoLab/atom-ink",
1212
"license": "MIT",
1313
"engines": {
14-
"atom": ">=1.12.0 <2.0.0"
14+
"atom": ">=1.39.0 <2.0.0"
1515
},
1616
"dependencies": {
1717
"ansi_up": "^3.0.0",

0 commit comments

Comments
 (0)