Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colorize_lines.pl: formatting is incorrectly reset #457

Open
oakkitten opened this issue Apr 5, 2021 · 1 comment
Open

colorize_lines.pl: formatting is incorrectly reset #457

oakkitten opened this issue Apr 5, 2021 · 1 comment
Labels
bug Unexpected problem or unintended behavior

Comments

@oakkitten
Copy link
Contributor

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 oakkitten added the bug Unexpected problem or unintended behavior label Apr 5, 2021
@weechatter
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants