natecraddock / zf

a commandline fuzzy finder and zig package designed for filtering filepaths
MIT License
451 stars 14 forks source link

Escape ANSI codes in ZF_PROMPT #15

Closed natecraddock closed 1 year ago

natecraddock commented 1 year ago

As reported in #13, ANSI codes are not escaped in the ZF_PROMPT env variable which leads to incorrect width calculations when displaying the prompt.

ANSI escapes should be ignored and only the prompt character(s) should be considered