dahlia / iterfzf

Pythonic interface to fzf, a CLI fuzzy finder
https://pypi.python.org/pypi/iterfzf
GNU General Public License v3.0
164 stars 19 forks source link

Ignore exception and removed trailing nulls (possibly only affects Windows) #3

Closed jeffrimko closed 4 years ago

jeffrimko commented 5 years ago

Fixes exception when selecting an option before all are finished loading. Remove trailing null character from returned selected option. These changes have only been tested on Windows so they might not affect other OS's.

The "errno.EPIPE == 32" condition is a "broken pipe" which should be ignored in situations where the user makes a selection before the fzf list has finished loading.

dahlia commented 4 years ago

Thanks for your contribution! This patch will be included in the next release.