commit e79cbed0965603b232e7fc3d9783419ddc590ffb
parent 856ebfae28958d19c22846eacac647186cca5e2e
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date: Sat, 22 Feb 2014 20:40:30 +0100
org-download.el (org-download--delete): delete all between comment start and link
Fixes #6
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -299,7 +299,7 @@ When TIMES isn't nil, delete only TIMES links."
(while (and (>= (decf times) 0)
(re-search-forward "\\[\\[\\([^]]*\\)\\]\\]" end t))
(let ((str (match-string-no-properties 1)))
- (delete-region (match-beginning 0)
+ (delete-region beg
(match-end 0))
(when (file-exists-p str)
(delete-file str))))))