Source

PackageManager / sublime_util.py

Full commit
1
2
3
4
5
6
7
8
import contextlib


@contextlib.contextmanager
def in_one_edit(v):
    edit = v.begin_edit()
    yield edit
    v.end_edit(edit)