Replace 2 with tab-width

This commit is contained in:
Raymond Huang 2018-08-13 06:23:45 -07:00
parent 63454ddcc3
commit f7b994942b
1 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@ Uses prefix (as PREFIX) to choose where to display it:
(if (= -2 relative-depth)
0
(+ 2 (current-indentation))))))
(+ tab-width (current-indentation))))))
(defun plantuml-indent-line ()
(interactive)
@ -403,7 +403,7 @@ Uses prefix (as PREFIX) to choose where to display it:
(indent-line-to 0)
(let ((offset (plantuml-current-block-indentation)))
(when (looking-at plantuml-indent-regexp-end)
(setq offset (max (- offset 2) 0)))
(setq offset (max (- offset tab-width) 0)))
(indent-line-to offset)))))