jhawthorn / fzy

:mag: A simple, fast fuzzy finder for the terminal
MIT License
2.97k stars 124 forks source link

The prompt fills the screen if the search result line is too long #55

Closed casr closed 1 year ago

casr commented 6 years ago

Sorry I thought #54 fixed this but I have just found another instance where this occurs with or without scores.

Test case:

cd /path/to/src/fzy
git reset --hard 0ee47c2
make clean ; make
ag --nogroup '^' | ./fzy

and at the prompt do type jjj and then repeatedly switch between having jj and jjj. The prompt soon fills up the screen.

Related to #47.

casr commented 6 years ago

I should probably add that echo $COLUMNS results in 84.

neuschaefer commented 6 years ago

I think this happens when a result overflows its line because of tab characters. Tabs are currently counted as one screen cell, like any other character.

casr commented 1 year ago

Appears to be fixed for me since 757b31309434d7adcd1361be26c1cd2a44d6ec9b