From 420181d531bbb189212f2b08cdcddea78c663ccf Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Mon, 22 Jan 2024 11:25:07 +0100 Subject: [PATCH] refactor: code formatting fixes Signed-off-by: Christopher Arndt --- rename_regions_from_markers.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rename_regions_from_markers.lua b/rename_regions_from_markers.lua index 9d46706..f8ffe08 100644 --- a/rename_regions_from_markers.lua +++ b/rename_regions_from_markers.lua @@ -11,26 +11,26 @@ function factory() -- corresponding to a [selected] region function find_track_for_region(region_id) for route in Session:get_tracks():iter() do - local track = route:to_track(); - local pl = track:playlist () + local track = route:to_track() + local pl = track:playlist() if not pl:region_by_id(region_id):isnil() then return track end end - assert (0) -- can't happen, region must be in a playlist + assert(0) -- can't happen, region must be in a playlist end return function() - local sel = Editor:get_selection () -- get current selection + local sel = Editor:get_selection() -- get current selection local loc = Session:locations() -- get locations -- prepare undo operation - Session:begin_reversible_command ("Rename regions from markers") + Session:begin_reversible_command("Rename regions from markers") -- for each selected region... - for region in sel.regions:regionlist():iter () do + for region in sel.regions:regionlist():iter() do -- test if it's an audio region - local ar = region:to_audioregion () + local ar = region:to_audioregion() if ar:isnil() then goto next end