diff --git a/app/views/play/level/tome/SpellView.coffee b/app/views/play/level/tome/SpellView.coffee index 8b6bccb98..09ebfbabd 100644 --- a/app/views/play/level/tome/SpellView.coffee +++ b/app/views/play/level/tome/SpellView.coffee @@ -476,8 +476,9 @@ module.exports = class SpellView extends CocoView currentLine = _.string.rtrim(@aceDoc.$lines[cursorPosition.row].replace(/[ \t]*\/\/[^"']*/g, '')) # trim // unless inside " endOfLine = cursorPosition.column >= currentLine.length # just typed a semicolon or brace, for example beginningOfLine = not currentLine.substr(0, cursorPosition.column).trim().length # uncommenting code, for example + incompleteThis = /^(s|se|sel|self|t|th|thi|this)$/.test currentLine.trim() #console.log 'finished?', valid, endOfLine, beginningOfLine, cursorPosition, currentLine.length, aether, new Date() - 0, currentLine - if valid and (endOfLine or beginningOfLine) + if valid and (endOfLine or beginningOfLine) and not incompleteThis if @autocastDelay > 60000 @preload() else