fix(explorer.watch): issue-2031: handle nil files in watch.start cb #1

Merged
ottobackwards merged 1 commit from issue-2031 into main 2025-07-07 14:22:31 +02:00

It is possible that the watch.start callback gets called without a file
when watching a directory on FreeBSD.
Handle this by adding a nil check, and setting the callback file to the
path.

Description

Screenshots

It is possible that the watch.start callback gets called without a file when watching a directory on FreeBSD. Handle this by adding a nil check, and setting the callback file to the path. ## Description <!-- Describe the big picture of your changes to communicate to the maintainers why we should accept this pull request. --> ## Related Issue(s) <!-- If this PR fixes any issues, please link to the issue here. - Fixes #<issue_number> --> ## Screenshots <!-- Add screenshots of the changes if applicable. -->
ottobackwards added 1 commit 2025-07-07 14:21:33 +02:00
fix(explorer.watch): issue-2031: handle nil files in watch.start cb
Some checks failed
CI / ci (pull_request) Has been cancelled
PR Labeler / labeler (pull_request_target) Has been cancelled
PR Title / pr-title (pull_request_target) Has been cancelled
7b110c6a16
It is possible that the watch.start callback gets called without a file
when watching a directory on FreeBSD.
Handle this by adding a nil check, and setting the callback file to the
path.
ottobackwards merged commit 30aa658622 into main 2025-07-07 14:22:31 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ottobackwards/snacks.nvim#1
No description provided.