Wrap plantuml-indent-line with save-excursion
This commit is contained in:
parent
9b1c1bfc27
commit
63454ddcc3
|
@ -397,13 +397,14 @@ Uses prefix (as PREFIX) to choose where to display it:
|
|||
|
||||
(defun plantuml-indent-line ()
|
||||
(interactive)
|
||||
(beginning-of-line)
|
||||
(if (bobp)
|
||||
(indent-line-to 0)
|
||||
(let ((offset (plantuml-current-block-indentation)))
|
||||
(when (looking-at plantuml-indent-regexp-end)
|
||||
(setq offset (max (- offset 2) 0)))
|
||||
(indent-line-to offset))))
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(if (bobp)
|
||||
(indent-line-to 0)
|
||||
(let ((offset (plantuml-current-block-indentation)))
|
||||
(when (looking-at plantuml-indent-regexp-end)
|
||||
(setq offset (max (- offset 2) 0)))
|
||||
(indent-line-to offset)))))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Reference in New Issue