Removed a no longer needed todo
This commit is contained in:
parent
e34fac23ff
commit
36cba73046
@ -29,7 +29,6 @@ def guess_edit(initial_line, lt, ct, vs):
|
|||||||
number of changed lines and if they got longer or shorter. This will detect most simple
|
number of changed lines and if they got longer or shorter. This will detect most simple
|
||||||
movements like insertion, deletion of a line or carriage return.
|
movements like insertion, deletion of a line or carriage return.
|
||||||
"""
|
"""
|
||||||
assert(ct)
|
|
||||||
if not len(lt) and not len(ct): return True, ()
|
if not len(lt) and not len(ct): return True, ()
|
||||||
pos = vs.pos
|
pos = vs.pos
|
||||||
ppos = vs.ppos
|
ppos = vs.ppos
|
||||||
@ -38,6 +37,7 @@ def guess_edit(initial_line, lt, ct, vs):
|
|||||||
for i in lt:
|
for i in lt:
|
||||||
es.append(("D", initial_line, 0, i))
|
es.append(("D", initial_line, 0, i))
|
||||||
es.append(("D", initial_line, 0, "\n"))
|
es.append(("D", initial_line, 0, "\n"))
|
||||||
|
if ct:
|
||||||
es.pop() # Remove final \n because it is not really removed
|
es.pop() # Remove final \n because it is not really removed
|
||||||
if is_complete_edit(initial_line, lt, ct, es): return True, es
|
if is_complete_edit(initial_line, lt, ct, es): return True, es
|
||||||
if ppos.mode == 'v': # Maybe selectmode?
|
if ppos.mode == 'v': # Maybe selectmode?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user