Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
general: Fixed bug with double // in path
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jan 18, 2019
1 parent f901664 commit 776464f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fff
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ status_line() {
"${FFF_COL2:-1}" \
"($((scroll+1))/$((list_total+1)))" \
"${marked_files[*]:+${mark_ui}}" \
"${PWD_escaped:-/}"
"$PWD_escaped"
}

read_dir() {
Expand Down Expand Up @@ -361,6 +361,7 @@ open() {
search_end_early=
previous_dir="$PWD"
cd "${1:-/}" ||:
PWD="${PWD/#\/\///}"
redraw full

elif [[ -f $1 ]]; then
Expand Down

0 comments on commit 776464f

Please sign in to comment.