This commit is contained in:
Daniel Borchmann 2021-07-22 21:29:18 +02:00 committed by GitHub
commit fbe1ee87e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -723,8 +723,10 @@ Restore point to same position in text of the line as before indentation."
(beginning-of-line)
(indent-line-to (* plantuml-indent-level (plantuml-current-block-depth))))
;; restore position in text of line
(goto-char (- (line-end-position) original-position-eol))))
;; restore position in text of line, but not before the beginning of the
;; current line
(goto-char (max (line-beginning-position)
(- (line-end-position) original-position-eol)))))
;;;###autoload