scripts
scripts copied to clipboard
colorize_lines.pl: formatting is incorrectly reset
Script / WeeChat
- Name of script: colorize_lines.pl
- Script version: 3.9
- WeeChat version: v2.9-37-gaac14f28d
This bug has been reported to the script author? Yes Response or reason: No response
Bug summary
In rare conditions incorrect formatting appears if a color reset character is present
Steps to reproduce
- unload
colorize_lines.pl - type Ctrl+c, _ hello Ctrl+c, c hello Enter
- observe that the output is
hellohello
- load
colorize_lines.pl& type the same - observe that the output is
hellohello
Current behavior
output is underlined differently
Expected behavior
output is underlined the same way
a first test: $input $VAR1 = "\31F10\03115nils_2_\t\32\4hello\31\34hello"; $output $VAR1 = "\31F10\03115nils_2_\t\03115\32\4hello\31\34\03115hello\34";