kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.4k stars 150 forks source link

Bug on `:cd ../*` #388

Closed Akmadan23 closed 1 year ago

Akmadan23 commented 1 year ago

I noticed that when running a cd to a relative path that starts with ../ the directory change works fine but there is something that will be messed up. Below are a few examples.

Example 1

Initial state: immagine

After running :cd ../..

Expected behavior: immagine Actual behavior: immagine

Example 2

Initial state: immagine

After running :cd ../dir3_alt

Expected behavior: immagine Actual behavior: immagine


I already found a fix for this, I'll make a PR right after this issue.