diff options
author | garret <garret@airmail.cc> | 2022-12-15 12:08:27 +0000 |
---|---|---|
committer | garret <garret@airmail.cc> | 2022-12-15 12:08:27 +0000 |
commit | d8a867c9ec1fdd9e0457e83302111fb60514d8bc (patch) | |
tree | d05cb47f197820a25993e4dd6b6f7effed119c89 /macros | |
parent | b7f820a226ec68e8b1b24bf44e8450d56eeb6d52 (diff) | |
download | aegisub-scripts-d8a867c9ec1fdd9e0457e83302111fb60514d8bc.tar.gz aegisub-scripts-d8a867c9ec1fdd9e0457e83302111fb60514d8bc.tar.bz2 aegisub-scripts-d8a867c9ec1fdd9e0457e83302111fb60514d8bc.zip |
dupe and comment: variable names that make sense
Diffstat (limited to 'macros')
-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 |