Skip to content

Commit 42b3179

Browse files
committedFeb 8, 2025
fix max chars 0 was not unlimited default
1 parent b473719 commit 42b3179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎scripts/cwd.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ main() {
4141
fi
4242

4343
cwd_max_chars="$(get_tmux_option "@dracula-cwd-max-chars" "0")"
44-
if [[ "${#cwd}" -gt "$cwd_max_chars" ]]; then
44+
if [[ "${cwd_max_chars}" -gt 0 && "${#cwd}" -gt "$cwd_max_chars" ]]; then
4545
cwd="…/…${cwd:(- cwd_max_chars)}"
4646
fi
4747

0 commit comments

Comments
 (0)