summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ALGORITHM.md6
-rw-r--r--README.md8
-rw-r--r--src/tty_interface.c2
3 files changed, 11 insertions, 5 deletions
diff --git a/ALGORITHM.md b/ALGORITHM.md
index b307a62..9b759fb 100644
--- a/ALGORITHM.md
+++ b/ALGORITHM.md
@@ -80,7 +80,7 @@ is able to score based on the optimal match.
## TextMate
TextMate deserves immense credit for popularizing fuzzy finding from inside
-text editors. It's influence can be found in the commant-t project, various
+text editors. It's influence can be found in the command-t project, various
other editors use command-t for file finding, and the 't' command in the github
web interface.
@@ -101,7 +101,7 @@ The wy `last_idx` is suspicious.
## Length of shortest first match: fzf
https://github.com/junegunn/fzf/blob/master/src/algo/algo.go
-Fzy scores based on the size of the greedy shortest match. fzf finds it's match
+Fzy scores based on the size of the greedy shortest match. fzf finds its match
by the first match appearing in the candidate string. It has some cleverness to
find if there is a shorter match contained in that search, but it isn't
guaranteed to find the shortest match in the string.
@@ -137,7 +137,7 @@ Example results for the search "abc"
* <tt>x**ABXC**x</tt>
* <tt>x**ABXC**xbc</tt>
-The third result here shoud have been scored the same as the first, but the
+The third result here should have been scored the same as the first, but the
lower scoring but shorter match is what is measured.
diff --git a/README.md b/README.md
index 25bec77..b2dd47f 100644
--- a/README.md
+++ b/README.md
@@ -60,12 +60,18 @@ Using MacPorts
sudo yum install https://github.com/jhawthorn/fzy/releases/download/0.9/fzy-0.9-1.x86_64.rpm
-### Arch Linux
+### Arch Linux/MSYS2
fzy is available in the `community` repo.
sudo pacman -S fzy
+### Gentoo Linux
+
+fzy is available in the main repo.
+
+ emerge -av app-shells/fzy
+
### pkgsrc (NetBSD and others)
sudo pkgin install fzy
diff --git a/src/tty_interface.c b/src/tty_interface.c
index b4f6c61..a7d506e 100644
--- a/src/tty_interface.c
+++ b/src/tty_interface.c
@@ -36,7 +36,7 @@ static void draw_match(tty_interface_t *state, const char *choice, int selected)
size_t maxwidth = tty_getwidth(tty);
- if (options->show_scores) {
+ if (options->show_scores && maxwidth >= 9) {
if (score == SCORE_MIN) {
tty_printf(tty, "( ) ");
} else {