branch: externals/hyperbole
commit c02bf8fc5a7738121684685c13efaffb1df006d1
Author: Mats Lidell <[email protected]>
Commit: GitHub <[email protected]>

    Use use-region-p for active region (#126)
---
 ChangeLog | 5 ++++-
 hui.el    | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b1dee73..e99d2b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-<<<<<<< HEAD
+2021-10-26  Mats Lidell  <[email protected]>
+
+* hui.el (hui:link-directly): Use use-region-p for active region.
+
 2021-10-17  Bob Weiner  <[email protected]>
 
 * hpath.el (hpath:symlink-referent): Fix handling of relative symlinks, adding
diff --git a/hui.el b/hui.el
index 2c37d15..2152f16 100644
--- a/hui.el
+++ b/hui.el
@@ -750,7 +750,7 @@ See also documentation for `hui:link-possible-types'."
                     (hui:hbut-label
                      (cond ((hmouse-prior-active-region)
                             hkey-region)
-                           ((marker-position (hypb:mark-marker t))
+                           ((use-region-p)
                             (hui:hbut-label-default
                              (region-beginning) (region-end))))
                      "link-directly"

Reply via email to