Use when instead of if in electric-graphviz-dot-semi

This commit is contained in:
Adam Goldsmith 2018-05-11 00:55:10 -04:00
parent f1aed9c65e
commit a89a9fe37a
1 changed files with 6 additions and 6 deletions

View File

@ -220,12 +220,12 @@
"Terminate line and indent next line."
(interactive)
(insert ";")
(if (and graphviz-dot-auto-indent-on-semi
(not (graphviz-dot-comment-or-string-p)))
(save-excursion
(beginning-of-line)
(skip-chars-forward " \t")
(graphviz-dot-indent-line))
(when (and graphviz-dot-auto-indent-on-semi
(not (graphviz-dot-comment-or-string-p)))
(save-excursion
(beginning-of-line)
(skip-chars-forward " \t")
(graphviz-dot-indent-line))
(delete-horizontal-space))))
(use-package frame