Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit

Permalink
(panel_mouse_is_on_item): fix return value
Browse files Browse the repository at this point in the history
...in case of mouse click below last file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
  • Loading branch information
aborodin committed Feb 16, 2025
1 parent abbd9d5 commit 130d0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filemanager/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3950,7 +3950,7 @@ panel_mouse_is_on_item (const WPanel *panel, int y, int x)
y += panel->top + lines * col;

// are we below or in the next column of last file?
if (y > panel->dir.len)
if (y >= panel->dir.len)
return MOUSE_AFTER_LAST_FILE;

// we are on item of the file file; return an index to select a file
Expand Down

0 comments on commit 130d0f0

Please sign in to comment.