summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2023-08-28 18:37:37 +0200
committerPhilip Kaludercic <philipk@posteo.net>2023-08-28 18:37:37 +0200
commite0c2d6272695449b13aa228f6f3d8b9c12a4b17f (patch)
tree19e2857992f34b08ebb4bf07e1e7289fd5bd6ccc
parentacb156f090724d4d773efb97d3ef8031c4a35c3e (diff)
Leave 'do-at-point--mode' if there is no thing at point
-rw-r--r--do-at-point.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/do-at-point.el b/do-at-point.el
index 25bad6f..b1fca98 100644
--- a/do-at-point.el
+++ b/do-at-point.el
@@ -215,6 +215,7 @@ action is selected."
(unless (and do-at-point--overlay
(overlay-start do-at-point--overlay)
(overlay-end do-at-point--overlay))
+ (do-at-point--mode -1)
(user-error "No selected thing"))
(let* ((thing (overlay-get do-at-point--overlay 'do-at-point-thing))
(options (do-at-point--actions thing))