irssi-import / bugs.irssi.org

bugs.irssi.org archive
https://github.com/irssi/irssi/issues
0 stars 0 forks source link

Unicode in statusbar items causes miscalculation in length #816

Open irssibot opened 13 years ago

irssibot commented 13 years ago

When a statusbar item contains Unicode, it seems to throw off the character-length calculations, and “wipes out” later characters in the statusbar. Here’s a picture: http://ell.io/KncM

It’s fairly easy to reproduce. Try the following:

/set timestamp_format 7 ſ 692 314
/statusbar prompt add -before input time

The Unicode character in that timestamp format will misalign the “prompt” status bar such that text that you type ‘jumps around.’ (Depending on your theme, if there is text *around* that statusbar item, you may need to remove it. Try replacing <code><tt>time = "{sb $Z}";</tt></code> in your config file with <code><tt>time = "$Z";</tt></code> temporarily.)