Commit graph

1 commit

Author SHA1 Message Date
Matt Martz
1fedb95e4b
Use libc wcwidth to calculate print width in display ()
* Use libc wcwidth to calculate print width in display. Fixes 

* Remove errantly added blank lines

* Fixes

* Move setlocale, adjust tests to work around py2 oddity with characters following null

* Don't change cli stub

* emojis

* Remove to_text call

* Special accounting for deletions

* Add initialization function, expand tests, ensure fallback to len

* get_text_width requires text, ensure banner deals with it

* Handle setlocale errors

* Move variable decrement

* Remove unused import
2020-06-22 16:57:01 -05:00