-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Search History] slightly improve performance, add test and comments
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
set fish_history test | ||
set history_file_path ~/.local/share/fish/test_history | ||
printf "%s" "- cmd: echo 'lots of β chars | ||
when: 1612201487" >$history_file_path | ||
|
||
mock commandline "--replace --" "echo \$argv" | ||
mock commandline \* "" | ||
set --export --append FZF_DEFAULT_OPTS --select-1 | ||
|
||
set actual (_fzf_search_history) | ||
set expected "echo 'lots of β chars" | ||
@test "doesn't erase commands containing box drawing char delineator" "$actual" = "$expected" | ||
|
||
rm $history_file_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters