summaryrefslogtreecommitdiff
path: root/lisp/org/org-list.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2022-02-13 12:43:54 -0500
committerKyle Meyer <kyle@kyleam.com>2022-02-13 12:43:54 -0500
commitdf3492934639628f023049e032421b7beb80de57 (patch)
treec442922f989579726f2a74aa8981bf2764e69929 /lisp/org/org-list.el
parentfe27479cad0d6d1f33605a5185bda0957a7f179b (diff)
downloademacs-df3492934639628f023049e032421b7beb80de57.tar.gz
emacs-df3492934639628f023049e032421b7beb80de57.tar.bz2
emacs-df3492934639628f023049e032421b7beb80de57.zip
Update to Org 9.5.2-15-gc5ceb6
Diffstat (limited to 'lisp/org/org-list.el')
-rw-r--r--lisp/org/org-list.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/org-list.el b/lisp/org/org-list.el
index 0dd8139a977..da309f8c6da 100644
--- a/lisp/org/org-list.el
+++ b/lisp/org/org-list.el
@@ -1442,7 +1442,7 @@ This function returns, destructively, the new list structure."
(save-excursion
(goto-char (org-list-get-last-item item struct prevs))
(point-at-eol)))
- ((string-match-p "\\`[0-9]+\\'" dest)
+ ((and (stringp dest) (string-match-p "\\`[0-9]+\\'" dest))
(let* ((all (org-list-get-all-items item struct prevs))
(len (length all))
(index (mod (string-to-number dest) len)))