1
0
forked from VimPlug/jedi

Use the same function to detect newlines in the diff parser.

This commit is contained in:
Dave Halter
2017-01-23 09:56:38 +01:00
parent 1caa2ceafa
commit 01b25efea1
2 changed files with 2 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ class DiffParser(object):
def _get_old_line_stmt(self, old_line):
leaf = self._module.get_leaf_for_position((old_line, 0), include_prefixes=True)
if leaf.type == 'newline':
if _ends_with_newline(leaf):
leaf = leaf.get_next_leaf()
if leaf.get_start_pos_of_prefix()[0] == old_line:
node = leaf