From 513659f73be87000be3a77efae093e16f6723c1f Mon Sep 17 00:00:00 2001 From: Bill Dengler Date: Wed, 10 Jul 2019 23:49:33 +0800 Subject: [PATCH] Pass the end argument to collapse in the super call. (PR #9887) Fixes #9875 When collapsing a ConsoleUIATextInfo, the end keyword argument was not properly handled. This caused strange behaviour during the 'say all' command in Windows Consoles using UIA. --- source/NVDAObjects/UIA/winConsoleUIA.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/NVDAObjects/UIA/winConsoleUIA.py b/source/NVDAObjects/UIA/winConsoleUIA.py index 7a293af5ccc..cae4c4f8417 100644 --- a/source/NVDAObjects/UIA/winConsoleUIA.py +++ b/source/NVDAObjects/UIA/winConsoleUIA.py @@ -34,7 +34,7 @@ def collapse(self,end=False): # textRange back one character. # Correct this by bringing the start back up to where the end is. oldInfo=self.copy() - super(consoleUIATextInfo,self).collapse() + super(consoleUIATextInfo,self).collapse(end=end) if not end: self._rangeObj.MoveEndpointByRange( UIAHandler.TextPatternRangeEndpoint_Start,