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

Commit 130d0f0

Browse files
committed
(panel_mouse_is_on_item): fix return value
...in case of mouse click below last file. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
1 parent abbd9d5 commit 130d0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filemanager/panel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3950,7 +3950,7 @@ panel_mouse_is_on_item (const WPanel *panel, int y, int x)
39503950
y += panel->top + lines * col;
39513951

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

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

0 commit comments

Comments
 (0)