Irssi core bugs

Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 85 Notice: Undefined index: tasklist_type in /var/www/bugs.irssi.org/includes/class.tpl.php(128) : eval()'d code on line 90
  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category core
  • Assigned To No-one
  • Operating System OpenBSD
  • Severity Very Low
  • Priority Normal
  • Reported Version irssi 0.8.15
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: Irssi core bugs
Opened by Christopher Ohlsson (dmnc) - 2011-01-10

FS#782 - Wrong string length calculation for paste_prompt

If you change paste_prompt to include color codes, the cursor is placed too far to the right after printing the prompt, indicating that strlen is calculated using the number of bytes in the string, not the number of actually printed characters.

This task does not depend on any other tasks.

Christopher Ohlsson (dmnc)
Tuesday, 11 January 2011, 12:40 GMT
This probably affects all operating systems, it would seem odd if this were OS dependant, but I entered OpenBSD since this is the only OS I've been able to try it on.
Elliott Cable (elliottcable)
Friday, 02 December 2011, 00:50 GMT
Yep, running into the same issue with a theme I am trying to create.

There are other, possibly related bugs with input-prompt width calculations, when Unicode is included in status bar items before the prompt itself. For instance, my timestamp format includes Unicode characters, and there's a timestamp status bar item before the input area on my prompt bar; this causes odd mis-calculation bugs on the width, such as the first character of input “overlapping” the last character of the timestamp (but only sometimes; it “flickers” as things redraw, and sometimes the input prompt overrides the timestamp, and sometimes vice-versa.) Some relevant screenshots:

• A correct, “normal” prompt (which appears immediately after switching windows): http://ell.io/iVNeu
• One form of broken prompt: http://ell.io/iafJT
• Another: http://ell.io/iDGEg
• Reproducing Christopher's colour-code concerns: http://ell.io/iTRhb

Loading...