branch: elpa/xkcd
commit f2650dc39286f1eba8fa23ab44469d33248a17fb
Author: Vibhav Pant <vibh...@inspiron-1150.lan>
Commit: Vibhav Pant <vibh...@inspiron-1150.lan>

    Retrieve correct substring
---
 xkcd.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xkcd.el b/xkcd.el
index e9a650268e..7c976158b0 100644
--- a/xkcd.el
+++ b/xkcd.el
@@ -79,7 +79,7 @@ The return value is a string."
       (goto-char (point-min))
       (unless cached (re-search-forward "^$"))
       (prog1
-         (buffer-substring-no-properties (point) (point-min))
+         (buffer-substring-no-properties (+ (point) 1) (point-max))
        (kill-buffer (current-buffer))))))
 
 (defun xkcd-get-image-type (url)

Reply via email to