Skip to content

Commit

Permalink
[Treelib] Only set mouse actions after the mouse interface was loaded.
Browse files Browse the repository at this point in the history
Fixes #1073
  • Loading branch information
wyuenho authored and Alexander-Miller committed Nov 29, 2023
1 parent f0d09d1 commit 529876d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/elisp/treemacs-treelib.el
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,9 @@ argument."
:on-expand (lambda (&optional btn ) "" (ignore btn) ,on-expand)
:on-collapse (lambda (&optional btn ) "" (ignore btn) ,on-collapse)))

(treemacs-define-doubleclick-action ',closed-state ,(or double-click-action '#'ignore))
(treemacs-define-doubleclick-action ',open-state ,(or double-click-action '#'ignore))
(with-eval-after-load 'treemacs-mouse-interface
(treemacs-define-doubleclick-action ',closed-state ,(or double-click-action '#'ignore))
(treemacs-define-doubleclick-action ',open-state ,(or double-click-action '#'ignore)))

(treemacs-define-TAB-action
',closed-state
Expand Down

0 comments on commit 529876d

Please sign in to comment.