Don't close folds when following logs

This commit is contained in:
Piotr Sarnacki 2014-06-17 00:50:01 +02:00
parent 20e3152dba
commit 43e9af77d5
2 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,9 @@ class @Travis.Tailing
@tail().addClass('active')
@run()
isActive: ->
@tail().hasClass('active')
stop: ->
@tail().removeClass('active')

View File

@ -76,6 +76,7 @@ Travis.reopen
toggleTailing: ->
Travis.tailing.toggle()
@engine.autoCloseFold = !Travis.tailing.isActive()
event.preventDefault()
actions: