vendor/assets/javascripts/ace/mode-vala.js in ace-rails-ap-3.0.1 vs vendor/assets/javascripts/ace/mode-vala.js in ace-rails-ap-3.0.2

- old
+ new

@@ -525,14 +525,14 @@ ["text", "paren.rparen", "punctuation.operator"]; var SAFE_INSERT_BEFORE_TOKENS = ["text", "paren.rparen", "punctuation.operator", "comment"]; var context; -var contextCache = {} +var contextCache = {}; var initContext = function(editor) { var id = -1; if (editor.multiSelect) { - id = editor.selection.id; + id = editor.selection.index; if (contextCache.rangeCount != editor.multiSelect.rangeCount) contextCache = {rangeCount: editor.multiSelect.rangeCount}; } if (contextCache[id]) return context = contextCache[id];