Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 02-25-2022, 04:00 AM   #1
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,403
Default Action "Item: Remove content (trim) behind items" doesn't create undo point (FIXED)

__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)

Last edited by amagalma; 02-27-2022 at 02:08 PM.
amagalma is offline   Reply With Quote
Old 02-25-2022, 10:46 AM   #2
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,403
Default

A workaround for the time being is this script:
Code:
reaper.Main_OnCommand(40930, 0) -- Remove content (trim) behind items
reaper.Undo_OnStateChange("Remove content (trim) behind items")
BTW.. Why the above code works but the following doesn't?
Code:
reaper.Undo_BeginBlock()
reaper.Main_OnCommand(40930, 0) -- Remove content (trim) behind items
reaper.Undo_EndBlock( "Remove content (trim) behind items", 4)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 02-25-2022, 11:05 AM   #3
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,502
Default

Quote:
Originally Posted by amagalma View Post
BTW.. Why the above code works but the following doesn't?
Code:
reaper.Undo_BeginBlock()
reaper.Main_OnCommand(40930, 0) -- Remove content (trim) behind items
reaper.Undo_EndBlock( "Remove content (trim) behind items", 4)
Does it work with -1 extraflag?
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 02-25-2022, 01:03 PM   #4
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,403
Default

No
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 02-25-2022, 01:26 PM   #5
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 12,502
Default

Quote:
Originally Posted by amagalma View Post
No
Looks like something is broken not only in API.
__________________
DonateSoundCloudAll the REAPER names
vitalker is online now   Reply With Quote
Old 02-27-2022, 02:07 PM   #6
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,403
Default

Fixed in v6.49+dev0227
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.