mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-11-22 06:44:48 +01:00
Finished migrating to v0.4. removed spammy debug messages.
Former-commit-id: e62a0f488b8e7a8ef2ba6df2f09c67da7363da4d
This commit is contained in:
parent
029be23fe7
commit
4005d9bd86
1 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ def compress_changes(view, changes):
|
||||||
# as a workaround, whenever we receive multiple changes we compress all of them into a "single one" that delta understands,
|
# as a workaround, whenever we receive multiple changes we compress all of them into a "single one" that delta understands,
|
||||||
# namely, we get a bounding region to the change, and all the text in between.
|
# namely, we get a bounding region to the change, and all the text in between.
|
||||||
if len(changes) == 1:
|
if len(changes) == 1:
|
||||||
print("[change]", "[", changes[0].a.pt, changes[0].b.pt, "]", changes[0].str)
|
# print("[change]", "[", changes[0].a.pt, changes[0].b.pt, "]", changes[0].str)
|
||||||
return (changes[0].a.pt, changes[0].str, changes[0].b.pt)
|
return (changes[0].a.pt, changes[0].str, changes[0].b.pt)
|
||||||
|
|
||||||
return walk_compress_changes(view, changes)
|
return walk_compress_changes(view, changes)
|
||||||
|
@ -244,8 +244,8 @@ def walk_compress_changes(view, changes):
|
||||||
# print("\t[buff change]", change.a.pt, change.str, "(", change.len_utf8,")", change.b.pt)
|
# print("\t[buff change]", change.a.pt, change.str, "(", change.len_utf8,")", change.b.pt)
|
||||||
|
|
||||||
txt = view.substr(sublime.Region(txt_a, txt_b))
|
txt = view.substr(sublime.Region(txt_a, txt_b))
|
||||||
print("[walking txt]", "[", txt_a, txt_b, "]", txt)
|
# print("[walking txt]", "[", txt_a, txt_b, "]", txt)
|
||||||
print("[walking reg]", "[", reg_a, reg_b, "]")
|
# print("[walking reg]", "[", reg_a, reg_b, "]")
|
||||||
return reg_a, txt, reg_b
|
return reg_a, txt, reg_b
|
||||||
|
|
||||||
def apply_buffer_change(buffer):
|
def apply_buffer_change(buffer):
|
||||||
|
|
Loading…
Reference in a new issue