matlab.el:

(matlab-mode-vf-add-end-to-this-block):
when adding end to end of buffer, be sure
to add CR @ beginning in case of no CR at end of last line
of code.
This commit is contained in:
Eric Ludlam 2019-11-15 18:20:06 -05:00
parent a2d6f97b68
commit 4ed7821a04

View file

@ -3960,7 +3960,7 @@ by `matlab-mode-vf-add-ends'"
(save-excursion (insert "end\n\n"))
(matlab-indent-line))
(goto-char (point-max))
(save-excursion (insert "end\n\n"))
(save-excursion (insert "\nend\n\n"))
(matlab-indent-line))))
(defun matlab-mode-vf-block-matches-backward (&optional fast)