mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Properly select the next item after deletion
Setting FF_BSEL after calling browse_init() causes two items to be selected, as browse_init() makes sure something will be selected, while calc_process() assumes nothing is, because the previously selected item had just been deleted.
This commit is contained in:
parent
6de0a8ec00
commit
06a5f5215f
2 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
git - ?
|
git - ?
|
||||||
- Implemented hard link detection
|
- Implemented hard link detection
|
||||||
|
- Properly select the next item after deletion
|
||||||
|
|
||||||
1.5 - 2009-05-02
|
1.5 - 2009-05-02
|
||||||
- Fixed incorrect apparent size on directory refresh
|
- Fixed incorrect apparent size on directory refresh
|
||||||
|
|
|
||||||
|
|
@ -237,9 +237,9 @@ void delete_process() {
|
||||||
if(delete_dir(root))
|
if(delete_dir(root))
|
||||||
browse_init(root);
|
browse_init(root);
|
||||||
else {
|
else {
|
||||||
browse_init(n);
|
|
||||||
if(nextsel)
|
if(nextsel)
|
||||||
nextsel->flags |= FF_BSEL;
|
nextsel->flags |= FF_BSEL;
|
||||||
|
browse_init(n);
|
||||||
}
|
}
|
||||||
link_del(root);
|
link_del(root);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue