rclone/cmd/ncdu
Nick Craig-Wood 53868ef4e1 ncdu: fix crash when re-entering changed directory after rescan
ncdu stores the position that it was in for each directory. However
doing a rescan can cause those positions to be out of range if the
number of files decreased in a directory. When re-entering the
directory, this causes an index out of range error.

This fixes the problem by detecting the index out of range and
flushing the saved directory position.

See: https://forum.rclone.org/t/slice-bounds-out-of-range-during-ncdu/42492/
2023-10-24 14:26:57 +01:00
..
scan ncdu: add support for modification time 2022-11-07 11:57:44 +00:00
ncdu_unsupported.go ncdu: replace termbox with tcell's termbox wrapper 2022-06-19 11:22:45 +01:00
ncdu.go ncdu: fix crash when re-entering changed directory after rescan 2023-10-24 14:26:57 +01:00