mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Fix issue #662
This commit is contained in:
parent
656b34fc34
commit
e9118142db
1 changed files with 2 additions and 2 deletions
|
@ -103,8 +103,8 @@ module.exports = class SpellToolbarView extends View
|
|||
|
||||
updateScroll: ->
|
||||
return unless statementStart = @callState?.statements?[@statementIndex]?.range[0]
|
||||
text = @ace.getValue()
|
||||
currentLine = text.substr(0, statementStart).split('\n').length - 1
|
||||
text = @ace.getValue() # code in editor
|
||||
currentLine = statementStart.row
|
||||
@ace.scrollToLine currentLine, true, true
|
||||
|
||||
setCallState: (callState, statementIndex, @callIndex, @metrics) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue