Skip to content

Commit

Permalink
Fix first anchor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Jun 6, 2020
1 parent c5655f0 commit 3708717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/_tide_decolor.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
function _tide_decolor -a text
printf '%s' "$text" | string replace -a (set_color normal) '' | string replace -ar '\e\[[0-9;]*m' ''
string replace -a (set_color normal) '' "$text" | string replace -ar '\e\[[0-9;]*m' ''
end
4 changes: 2 additions & 2 deletions functions/_tide_item_pwd.fish
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function _tide_item_pwd
set -l pwd (string replace $HOME '~' $PWD)
set -l colorPwd $pwd
set -l splitPwd (string split '/' $pwd)
set -l splitPwd (string split --no-empty '/' $pwd)
set -l maxLength (math $COLUMNS-$tide_pwd_truncate_margin)

set -l dirColor (set_color $tide_pwd_color_dirs)
Expand Down Expand Up @@ -38,7 +38,7 @@ function _tide_item_pwd
end

function _parse_anchors
set -l splitGitDir (string replace $HOME '~' $git_dir | string split '/')
set -l splitGitDir (string replace $HOME '~' $git_dir | string split --no-empty '/')

set -l anchors
if contains 'first' $tide_pwd_anchors
Expand Down

0 comments on commit 3708717

Please sign in to comment.