Bug
Renaming and doing a bulk replacement of a style currently in use via the Style Editor causes Aegisub to unexpectedly modify any lua script present in Text.
Steps to Reproduce
- Have one or more lines where the Text contains lua script. Line format can be Comment or Dialogue.
- Access the Style Editor either via the Styles Manager or the Edit button in the main window.
- If accessing via Styles Manager, select a style that is currently in use. Rename the style into anything.
- Attempt to save the new style name by clicking either OK or Apply.
- The dialogue "Do you want to change all instances of this style to this new name?" appears. Click Yes to trigger to change.
- Aegisub will then appear to delete certain portions of any lua script present in Text.
Sample File for Replication
I have uploaded a small file for ease of understanding.
The file contains 3 styles "a", "b", and "c".
The file also contains two text lines.
- Line 1 is a Comment using style "a" containing a line of lua script.
- Line 2 is a Dialogue using style "b" containing an identical line of lua script.
The following behaviors are observed.
- Rename and bulk replace style "a" --> lua scripts for both lines 1 and 2 are affected, even though style renaming only affects line 1.
- Rename and bulk replace style "b" --> lua scripts for both lines 1 and 2 are affected, even though style renaming only affects line 2.
- Rename style "c" --> no bug as no bulk replace is triggered since style "c" is not in use.
Bug
Renaming and doing a bulk replacement of a style currently in use via the Style Editor causes Aegisub to unexpectedly modify any lua script present in Text.
Steps to Reproduce
Sample File for Replication
I have uploaded a small file for ease of understanding.
The file contains 3 styles "a", "b", and "c".
The file also contains two text lines.
The following behaviors are observed.