Skip to content

Commit

Permalink
refactor: add NO_UNDO flag to view.add_regions
Browse files Browse the repository at this point in the history
This should save some memory.

Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Oct 31, 2023
1 parent b180099 commit 46b409a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/ui/region_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def draw_uri_regions(view: sublime.View, uri_regions: Iterable[sublime.Region])
tuple(uri_regions),
scope=draw_uri_regions["scope"],
icon=draw_uri_regions["icon"],
flags=parse_draw_region_flags(draw_uri_regions["flags"]),
flags=parse_draw_region_flags(draw_uri_regions["flags"]) | sublime.NO_UNDO,
)


Expand Down

0 comments on commit 46b409a

Please sign in to comment.