(regex_check_type): fix end_search value in call of mc_search_run().
commitce645982fb732decc25a997e1cf922d7c7b63c70
authorAndrew Borodin <aborodin@vmail.ru>
Sat, 18 Jan 2025 06:17:31 +0000 (18 09:17 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sat, 18 Jan 2025 06:17:31 +0000 (18 09:17 +0300)
treef57ab9ce6ee76e813a2834a37ec2da7cecbe4a3c
parent5d468113252812906cbff5c9aa0fcdc123a4570c
(regex_check_type): fix end_search value in call of mc_search_run().

Handling files by type is broken. For example, nothing happen on press
Enter of pdf-files.
The bug appeared after 702c354602e1f3102894ec2a973588b34721dd3a.

Previously, when end_search had unsigned type gsize, -1 meant SIZE_MAX,
a large positive number.
Now end_search has type signed off_t (signed), -1 means -1.

Replacing -1 with some large positive number fixes the bug

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/ext.c