emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/xkcd f2650dc392 46/82: Retrieve correct substring


From: ELPA Syncer
Subject: [nongnu] elpa/xkcd f2650dc392 46/82: Retrieve correct substring
Date: Mon, 12 Dec 2022 21:59:52 -0500 (EST)

branch: elpa/xkcd
commit f2650dc39286f1eba8fa23ab44469d33248a17fb
Author: Vibhav Pant <vibhavp@inspiron-1150.lan>
Commit: Vibhav Pant <vibhavp@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

[Prev in Thread] Current Thread [Next in Thread]