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
close character))
(unless (use-region-p)
(setq start (point) end (point)))
(setq start (point)
end (point)))
(save-excursion
(goto-char end)
(insert-char close)