diff --git a/src/codemirror.js b/src/codemirror.js index 1d336e4..4867fe6 100644 --- a/src/codemirror.js +++ b/src/codemirror.js @@ -207,6 +207,7 @@ state.else_block = true; } else if (word == 'if' && state.else_block) { state.else_block = false; + --state.indentDepth; return style; } else { state.else_block = false;