File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 109
109
(declare-function flycheck-has-current-errors-p " ext:flycheck.el" )
110
110
(declare-function flycheck-count-errors " ext:flycheck.el" )
111
111
112
+ (declare-function magit-branch " ext:magit-branch.el" )
113
+
112
114
; ;
113
115
; ; (@* "Entry" )
114
116
; ;
@@ -463,13 +465,21 @@ mouse-1: Switch project"
463
465
(tip (jcs-modeline-2str backend)))
464
466
(concat (propertize backend-icon
465
467
'mouse-face 'mode-line-highlight
466
- 'help-echo tip)
468
+ 'help-echo tip
469
+ 'local-map
470
+ (let ((map (make-sparse-keymap )))
471
+ (define-key map (vector 'mode-line 'mouse-1 ) #'magit-branch )
472
+ map))
467
473
(propertize (concat
468
474
separator
469
475
branch)
470
476
'face 'jcs-modeline-vc-face
471
477
'mouse-face 'mode-line-highlight
472
- 'help-echo tip)
478
+ 'help-echo tip
479
+ 'local-map
480
+ (let ((map (make-sparse-keymap )))
481
+ (define-key map (vector 'mode-line 'mouse-1 ) #'magit-branch )
482
+ map))
473
483
" " )))
474
484
475
485
; ;
You can’t perform that action at this time.
0 commit comments