Home Download Buy Blog Forum Support

Change to add_regions

Change to add_regions

Postby agibsonsw on Sat May 25, 2013 6:42 pm

What has changed between ST2 and ST3 with add_regions, if anything? Currently I have:

Code: Select all
view.add_regions("edited_rgns", new_edits, ICONSCOPE, ICON, \
        sublime.HIDDEN | sublime.PERSISTENT)

should I change this to:

Code: Select all
view.add_regions(view.id(), "edited_rgns", new_edits, ICONSCOPE, ICON, \
        sublime.HIDDEN | sublime.PERSISTENT)
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 6 guests

cron