diff options
Diffstat (limited to 'macros/garret.dupe-and-comment.lua')
-rw-r--r-- | macros/garret.dupe-and-comment.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/garret.dupe-and-comment.lua b/macros/garret.dupe-and-comment.lua index 7c3e31d..c445bfb 100644 --- a/macros/garret.dupe-and-comment.lua +++ b/macros/garret.dupe-and-comment.lua @@ -1,7 +1,7 @@ script_name="Dupe and Comment" script_description="Copies a line and comments out the original.\nbecause i like seeing the original while editing, and being able to go back to it easily" script_author = "garret" -script_version = "2.1.1" +script_version = "2.1.2" script_namespace = "garret.dupe-and-comment" local haveDepCtrl, DependencyControl, depctrl = pcall(require, "l0.DependencyControl") @@ -19,10 +19,10 @@ end local function comment(subs, sel) for i=#sel,1,-1 do local line=subs[sel[i]] - local dupe = util.copy(line) + local original = util.copy(line) line.comment = false -- going to edit it, so we probably want to see it on the video - dupe.comment = true -- this is the actual original one - subs.insert(sel[i]+1,dupe) -- putting it on the next line so i don't have to change line + original.comment = true -- this is the actual original one + subs.insert(sel[i]+1, original) -- putting it on the next line so i don't have to change line end aegisub.set_undo_point(script_name) end |