Sublime Forum

Change to add_regions

#1

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

view.add_regions("edited_rgns", new_edits, ICONSCOPE, ICON, \ sublime.HIDDEN | sublime.PERSISTENT)
should I change this to:

view.add_regions(view.id(), "edited_rgns", new_edits, ICONSCOPE, ICON, \ sublime.HIDDEN | sublime.PERSISTENT)

0 Likes