lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js in gollum-3.1.2 vs lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/folding/mixed.js in gollum-3.1.3

- old
+ new

@@ -42,9 +42,11 @@ (function() { this.$getMode = function(state) { + if (typeof state != "string") + state = state[0]; for (var key in this.subModes) { if (state.indexOf(key) === 0) return this.subModes[key]; } return null;