aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 15:46:13 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 15:48:31 -0200
commitc46dd1cde6d8428a73be0f2e6918b701af541004 (patch)
tree02a176fbe777653dff746d4c401c46a678b2f4b7
parentadbf1e311eaafbec2476fe08a5ba81672f25eb79 (diff)
Fix sx-format-replacements
replace-match moves point
-rw-r--r--sx.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/sx.el b/sx.el
index f01a11d..4159933 100644
--- a/sx.el
+++ b/sx.el
@@ -369,7 +369,8 @@ if ALIST contains a different string at the ?% entry."
(format (concat "%" flag "s") val)
(cdr-safe (assq char property-alist))))
;; Delete the specifier body.
- (replace-match "")
+ (delete-region (match-beginning 0)
+ (match-end 0))
;; Delete `char-after'.
(delete-char 1)))
(buffer-string))))