fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit 3cb547252a960027fac41cd1c2a98ccdf299ed15
parent ce0ae4fd4236217a3c96352bc1a69fea9188397e
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Sat, 16 Aug 2014 20:37:12 -0700

Make tty_setcol 0-indexed

Diffstat:
Mfzy.c | 2+-
Mtty.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fzy.c b/fzy.c @@ -138,7 +138,7 @@ void draw(tty_t *tty){ line++; } tty_moveup(tty, line + 1); - tty_setcol(tty, strlen(prompt) + strlen(search) + 1); + tty_setcol(tty, strlen(prompt) + strlen(search)); tty_flush(tty); } diff --git a/tty.c b/tty.c @@ -64,7 +64,7 @@ void tty_newline(tty_t *tty){ } void tty_setcol(tty_t *tty, int col){ - tty_printf(tty, "%c%c%iG", 0x1b, '[', col); + tty_printf(tty, "%c%c%iG", 0x1b, '[', col + 1); } void tty_moveup(tty_t *tty, int i){