diff --git a/include/nvda_dmp b/include/nvda_dmp index b2ccf200866..b0f8d87c79d 160000 --- a/include/nvda_dmp +++ b/include/nvda_dmp @@ -1 +1 @@ -Subproject commit b2ccf2008669e1acb0a7181c268ce6a1311d4d7e +Subproject commit b0f8d87c79dfa27fc9b33371a3f4a4a5e193c384 diff --git a/source/diffHandler.py b/source/diffHandler.py index 5d37065c054..4bacff6ae38 100644 --- a/source/diffHandler.py +++ b/source/diffHandler.py @@ -89,6 +89,8 @@ def diff(self, newText: str, oldText: str) -> List[str]: (size,) = struct.unpack("=I", sizeb) while len(buf) < size: buf += DiffMatchPatch._proc.stdout.read(size - len(buf)) + DiffMatchPatch._proc.stdin.flush() + DiffMatchPatch._proc.stdout.flush() return [ line for line in buf.decode("utf-8").splitlines()