summaryrefslogtreecommitdiff
path: root/org-link-edit.el
diff options
context:
space:
mode:
Diffstat (limited to 'org-link-edit.el')
-rw-r--r--org-link-edit.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/org-link-edit.el b/org-link-edit.el
index 6fa105a..636d191 100644
--- a/org-link-edit.el
+++ b/org-link-edit.el
@@ -373,7 +373,7 @@ END."
(progn (goto-char pt)
(org-link-edit--on-link-p)))
(user-error "Cannot transport next link with point on a link"))
- (goto-char (car desc-bounds))
+ (goto-char (or (car desc-bounds) pt))
(cl-multiple-value-bind (link-beg link-end link desc)
(org-link-edit--next-link-data previous)
(unless (or (not desc-bounds) (= (length desc) 0))