Skip to content

Commit

Permalink
fix mouse event handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchan0321 committed Aug 1, 2024
1 parent 58c6c61 commit 83d3611
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/pmacs-command-mouse.prfm
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ defcommand mouse-buffer-click-link desc: "Mouse click open buffer." {
$window cursor-move-to $geom $ey $ex;
$window end-region;
$main set-last-mouse-event $window $y $x;
return NONE;
return SELF;
};
$window apply-command $main $window "" jump-to-buffer;
$window end-region;
Expand All @@ -168,7 +168,7 @@ defcommand mouse-buffer-click-next-window desc: "Mouse click open buffer at next
$window cursor-move-to $geom $ey $ex;
$window end-region;
$main set-last-mouse-event $window $y $x;
return NONE;
return SELF;
};
$window apply-command $main $window "" buffer-list-open-next-window;
$window end-region;
Expand All @@ -189,7 +189,7 @@ defcommand mouse-buffer-click-previous-window desc: "Mouse click open buffer at
$window cursor-move-to $geom $ey $ex;
$window end-region;
$main set-last-mouse-event $window $y $x;
return NONE;
return SELF;
};
$window apply-command $main $window "" buffer-list-open-previous-window;
$window end-region;
Expand All @@ -210,7 +210,7 @@ defcommand mouse-dired-click-link desc: "Mouse click open file dired." {
$window cursor-move-to $geom $ey $ex;
$window end-region;
$main set-last-mouse-event $window $y $x;
return NONE;
return SELF;
};
$window apply-command $main $window "" dired-open;
$window end-region;
Expand All @@ -231,7 +231,7 @@ defcommand mouse-dired-click-next-window desc: "Mouse click open file at next wi
$window cursor-move-to $geom $ey $ex;
$window end-region;
$main set-last-mouse-event $window $y $x;
return NONE;
return SELF;
};
$window apply-command $main $window "" dired-open-next-window;
$window end-region;
Expand All @@ -252,7 +252,7 @@ defcommand mouse-dired-click-previous-window desc: "Mouse click open file at pre
$window cursor-move-to $geom $ey $ex;
$window end-region;
$main set-last-mouse-event $window $y $x;
return NONE;
return SELF;
};
$window apply-command $main $window "" dired-open-previous-window;
$window end-region;
Expand Down

0 comments on commit 83d3611

Please sign in to comment.