Minor code cleanup in gpolonkai/enclose-region
This commit is contained in:
parent
00dcbdd2ea
commit
8ab669205c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user