curusarn / resh

RESH ❯❯ Contextual shell history for zsh and bash
MIT License
1.01k stars 19 forks source link

Fix overlap in folded strings #143

Closed micnncim closed 3 years ago

micnncim commented 4 years ago

The current implementation overlaps dot strings with original strings.

Font: Ricty Nerd Font Terminal: Alacritty

This PR fixes the problem.

Before:

Screenshot 2020-05-26 at 14 43 25

After:

Screenshot 2020-05-26 at 14 41 49

curusarn commented 4 years ago

Hi!

I'm wondering why the Ricty Nerd Font uses a double-width character for ?

Does this issue only happen with Ricty Nerd Font and Alacrity or it also happens in other terminals?

For reference, this is how shortened strings look like in my terminal (with a monospaced font): Screenshot from 2020-05-28 00-52-32

Font: Hack Regular Terminal: Gnome teminal

micnncim commented 4 years ago

I've tried it with another font and then didn't found the above problem. Somehow the problem occurred at least in Ricty Nerd Font :cry: