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

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

[nongnu] elpa/xkcd e61b7e6ed6 51/82: xkcd-get-json: Get substring betwee


From: ELPA Syncer
Subject: [nongnu] elpa/xkcd e61b7e6ed6 51/82: xkcd-get-json: Get substring between (point) and (point-max), instead of
Date: Mon, 12 Dec 2022 21:59:53 -0500 (EST)

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

    xkcd-get-json: Get substring between (point) and (point-max), instead of
    point +1 and point-max.
---
 xkcd.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xkcd.el b/xkcd.el
index 0092269864..dbae5499a5 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) 1) (point-max))
+         (buffer-substring-no-properties (point) (point-max))
        (kill-buffer (current-buffer))))))
 
 (defun xkcd-get-image-type (url)



reply via email to

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