diff --git a/functions/_tide_decolor.fish b/functions/_tide_decolor.fish index 225fa12..334e2d4 100644 --- a/functions/_tide_decolor.fish +++ b/functions/_tide_decolor.fish @@ -1,3 +1,3 @@ -function _tide_decolor -a text - string replace --all --regex '\e(\[[\d;]*|\(B\e\[)m' '' "$text" +function _tide_decolor + string replace --all --regex '\e(\[[\d;]*|\(B\e\[)m' '' "$argv" end \ No newline at end of file diff --git a/functions/tide/tests/count_left_prompt_height.fish b/functions/tide/tests/count_left_prompt_height.fish deleted file mode 100644 index 48d7b67..0000000 --- a/functions/tide/tests/count_left_prompt_height.fish +++ /dev/null @@ -1,10 +0,0 @@ -@mesg '---------count_left_prompt_height---------' - -function _count_left_prompt_height - set -lx tide_left_prompt_items $argv - _tide_count_left_prompt_height - printf '%s' $_tide_left_prompt_height -end - -@test 'Single line' (_count_left_prompt_height pwd git_prompt prompt_char) -eq 1 -@test 'Double line' (_count_left_prompt_height pwd git_prompt newline prompt_char) -eq 2 \ No newline at end of file