diff --git a/matlab.el b/matlab.el
index 33835c3..f552864 100644
--- a/matlab.el
+++ b/matlab.el
@@ -2391,7 +2391,8 @@ Argument CURRENT-INDENTATION is what the previous line recommends for indentatio
                   (beginning-of-line)
                   (looking-at "[ \t]*")
                   (when (= match (match-end 0))
-                    (setq ci (- match (match-beginning 0)))
+                    (setq ci (* (- match (match-beginning 0))
+                                matlab-indent-level))
                     (throw 'indent nil)))))
             ;; End of special case for end and match after "^[ \t]*".
             (setq ci (+ ci
Hi all,

I have an issue with the indentation of 'end' lines with matlab.el.  It
seems that the calculated indentation level does not get multiplied by the
indent size resulting in blocks like:

if true
        if true
                for i = 1:10
                        disp(1);
  end
 end
end

Am I the only one to experience this?  The attached patch fixes it for
me but I am not sure whether this is a bug or an issue with my setup.

Any input would be welcome, thanks
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to