mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Add an extra indent line if the line following a range is only whitespace.
This commit is contained in:
parent
cc3a62febd
commit
fa21f9ef68
1 changed files with 4 additions and 1 deletions
|
@ -284,7 +284,10 @@ module.exports = class SpellView extends CocoView
|
|||
range = @aceSession.getFoldWidgetRange(row)
|
||||
if not range?
|
||||
guess = startOfRow(row)
|
||||
range = new Range(row,guess,row+1,guess+4)
|
||||
range = new Range(row,guess,row,guess+4)
|
||||
|
||||
if /^\s+$/.test lines[range.end.row+1]
|
||||
range.end.row += 1
|
||||
|
||||
xstart = startOfRow(range.start.row)
|
||||
level = Math.floor(xstart / 4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue