vendor/assets/javascripts/codemirror/utils/overlay.js in codemirror-rails-2.23 vs vendor/assets/javascripts/codemirror/utils/overlay.js in codemirror-rails-2.24
- old
+ new
@@ -41,10 +41,10 @@
if (state.overlayCur == null) return state.baseCur;
if (state.baseCur != null && combine) return state.baseCur + " " + state.overlayCur;
else return state.overlayCur;
},
- indent: function(state, textAfter) {
+ indent: base.indent && function(state, textAfter) {
return base.indent(state.base, textAfter);
},
electricChars: base.electricChars
};
};