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:
Yorhel 2009-05-11 20:14:52 +02:00
parent 6de0a8ec00
commit 06a5f5215f
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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);
} }