Browse Source

Fix logic when activating plain links

* lisp/org.el: Activate plain link when point is outside a tag, instead
  of the other way around.

TINYCHANGE
Rafael Laboissiere 9 years ago
parent
commit
7b9f2fba66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -5854,7 +5854,7 @@ prompted for."
     (let ((face (get-text-property (max (1- (match-beginning 0)) (point-min))
 				   'face))
 	  (link (org-match-string-no-properties 0)))
-      (when (if (consp face) (memq 'org-tag face) (eq 'org-tag face))
+      (unless (if (consp face) (memq 'org-tag face) (eq 'org-tag face))
 	(org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
 	(add-text-properties (match-beginning 0) (match-end 0)
 			     (list 'mouse-face 'highlight