Skip to content

Commit 912cc52

Browse files
committed
Update rest_slider.lua
Corrected text listing for UndoBlock selection info.
1 parent cc759ca commit 912cc52

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/rest_slider.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ function plugindef()
44
finaleplugin.Author = "Carl Vine"
55
finaleplugin.AuthorURL = "https://carlvine.com/lua/"
66
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
7-
finaleplugin.Version = "0.44"
8-
finaleplugin.Date = "2024/08/05" -- had to remove "RegisterMouseTracking()" process
7+
finaleplugin.Version = "0.45"
8+
finaleplugin.Date = "2024/08/06" -- had to remove "RegisterMouseTracking()" process
99
finaleplugin.CategoryTags = "Rests, Selection"
1010
finaleplugin.MinJWLuaVersion = 0.72
1111
finaleplugin.Notes = [[
@@ -178,22 +178,22 @@ local function get_staff_name(staff_num)
178178
end
179179

180180
local function setup_data()
181-
local rgn = finenv.Region()
182181
save_rgn:SetCurrentSelection() -- update "saved" region
183-
selection = "no selection"
182+
selection = "no selection" -- default listing
184183
adjacent_offsets = {} -- start with blank collection
185-
if empty_region then return end -- nothing else to initialise
184+
if empty_region then return end -- nothing else to set up
186185

187186
-- measures
187+
local rgn = finenv.Region()
188188
selection = "m." .. rgn.StartMeasure
189189
if rgn.StartMeasure ~= rgn.EndMeasure then
190190
selection = selection .. "-" .. rgn.EndMeasure
191191
end
192192
-- staves
193-
selection = selection .. " m." .. get_staff_name(rgn.StartStaff)
193+
selection = selection .. " " .. get_staff_name(rgn.StartStaff)
194194
if rgn.StartStaff ~= rgn.EndStaff then
195195
selection = selection .. "-" .. get_staff_name(rgn.EndStaff)
196-
return
196+
return -- all done for single staff selection
197197
end
198198

199199
-- set_adjacent_offsets (single staff required)

0 commit comments

Comments
 (0)