mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Be more helpful when opening a new indent.
This commit is contained in:
parent
bf4593f5d4
commit
716f759e11
1 changed files with 4 additions and 2 deletions
|
@ -280,9 +280,11 @@ module.exports = class SpellView extends CocoView
|
|||
|
||||
for row in [0..@aceSession.getLength()]
|
||||
foldWidgets[row] = @aceSession.getFoldWidget(row) unless foldWidgets[row]?
|
||||
|
||||
continue if foldWidgets[row] isnt "start"
|
||||
continue unless foldWidgets? and foldWidgets[row] is "start"
|
||||
range = @aceSession.getFoldWidgetRange(row)
|
||||
if not range?
|
||||
guess = startOfRow(row)
|
||||
range = new Range(row,guess,row+1,guess+4)
|
||||
|
||||
xstart = startOfRow(range.start.row)
|
||||
level = Math.floor(xstart / 4)
|
||||
|
|
Loading…
Reference in a new issue