branch: elpa/fedi
commit 70a683b2c0e9c441f044e72a301bf80f465cc137
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
simplify replace-region-contents
---
fedi.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/fedi.el b/fedi.el
index eeacf666de1..db68c3fa695 100644
--- a/fedi.el
+++ b/fedi.el
@@ -655,12 +655,10 @@ non-destructive as possible, whereas we need to always
replace
the whole likes count in order to propertize it fully."
(let ((json (fedi--property 'json)))
(save-excursion
- (save-restriction
- (narrow-to-region beg end)
- (goto-char (point-min))
- (delete-region (point-min) (point-max))
- (insert
- (funcall replace-fun json))))))
+ (goto-char beg)
+ (delete-region beg end)
+ (insert
+ (funcall replace-fun json)))))
(provide 'fedi)
;;; fedi.el ends here