~vcs-imports/nano/master

Viewing all changes in revision 10186.

  • Committer: Benno Schulenberg
  • Date: 2023-07-24 13:25:35 UTC
  • Revision ID: git-v1:d3dd403dc7565c3bd362996b3b602714a1e9e76b
browser: report an error instead of crashing when the folder disappears

When the directory that the user is browsing in is deleted by another
process at the moment that nano is building the list of file names,
this can result in an empty list, which some items in the main loop
in browse() cannot handle.  Prevent this mishandling by not entering
the loop when the list is empty.

This fixes https://savannah.gnu.org/bugs/?64465.
Reported-by: Jerry Meng <jerrytstng@gmail.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: