summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thievol@posteo.net>2021-07-14 18:00:27 +0200
committerThierry Volpiatto <thievol@posteo.net>2021-07-14 18:00:27 +0200
commit60db46905443c87f324440202bd0735d57c5c201 (patch)
treee99bfc39c9b1ce97e1a330bb4cd512edb8a7f676 /helm.el
parent23cb9fbf7450e2c8452af3ed495416b0ab8fa79a (diff)
Provide basic support for dragging files from HFF
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/helm.el b/helm.el
index 6a6a30f8..b7a07050 100644
--- a/helm.el
+++ b/helm.el
@@ -4944,6 +4944,7 @@ your candidates from `helm-async-outer-limit-hook'."
"Remove SOURCE from `helm-candidate-cache'."
(remhash (assoc-default 'name source) helm-candidate-cache))
+(defvar helm-drag-mouse-1-fn 'ignore)
(defun helm-insert-match (match insert-function &optional num source)
"Insert MATCH into `helm-buffer' with INSERT-FUNCTION.
If MATCH is a cons cell then insert the car as display with the
@@ -5003,6 +5004,7 @@ specified as respectively `helm-cand-num' and `helm-cur-source'."
(let ((inhibit-read-only t)
(map (get-text-property pos 'keymap)))
(when map
+ (define-key map [drag-mouse-1] helm-drag-mouse-1-fn)
(define-key map [mouse-2] 'helm-maybe-exit-minibuffer)
(put-text-property
helm-selection-point