Something went wrong. Try again.
Something went wrong. Try again.
283 B 9 lines
at main
12345678910function _pure_string_width \ --description 'returns raw string length, i.e. ignore ANSI-color' \ --argument-names prompt
set --local empty '' set --local raw_prompt (string replace --all --regex '\e\[[^m]*m' $empty -- $prompt)
string length -- $raw_promptend