Minor code cleanup in gpolonkai/enclose-region

This commit is contained in:
Gergely Polonkai 2019-02-22 07:09:34 +01:00
parent 00dcbdd2ea
commit 8ab669205c

View File

@ -305,7 +305,8 @@ member of the pair."
(setq open character (setq open character
close character)) close character))
(unless (use-region-p) (unless (use-region-p)
(setq start (point) end (point))) (setq start (point)
end (point)))
(save-excursion (save-excursion
(goto-char end) (goto-char end)
(insert-char close) (insert-char close)