From 04858db337dd13605bab0f73ab1d55feceec7e81 Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Mon, 11 Jan 2021 18:30:46 -0500 Subject: [PATCH] Update nvda_dmp to possibly address an autoread hang (#11998) * Update nvda_dmp. * Add flush calls for completeness. --- include/nvda_dmp | 2 +- source/diffHandler.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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()