scripts icon indicating copy to clipboard operation
scripts copied to clipboard

colorize_lines.pl: formatting is incorrectly reset

Open oakkitten opened this issue 4 years ago • 2 comments

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

  1. unload colorize_lines.pl
  2. type Ctrl+c, _ hello Ctrl+c, c hello Enter
  3. observe that the output is

    hellohello

  4. load colorize_lines.pl & type the same
  5. observe that the output is

    hellohello

Current behavior

output is underlined differently

Expected behavior

output is underlined the same way

oakkitten avatar Apr 05 '21 22:04 oakkitten

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";

weechatter avatar Apr 07 '21 22:04 weechatter