Skip to content

Commit

Permalink
Update nvda_dmp to possibly address an autoread hang (#11998)
Browse files Browse the repository at this point in the history
* Update nvda_dmp.

* Add flush calls for completeness.
  • Loading branch information
codeofdusk authored Jan 11, 2021
1 parent 714fa6f commit 04858db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/nvda_dmp
Submodule nvda_dmp updated 1 files
+2 −1 nvda_dmp.py
2 changes: 2 additions & 0 deletions source/diffHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 04858db

Please sign in to comment.