diff --git a/source/winConsoleHandler.py b/source/winConsoleHandler.py index a434d56af3c..bb1ae026b11 100755 --- a/source/winConsoleHandler.py +++ b/source/winConsoleHandler.py @@ -173,7 +173,8 @@ def _consoleCoordFromOffset(self,offset): consoleScreenBufferInfo=self.consoleScreenBufferInfo x=offset%consoleScreenBufferInfo.dwSize.x y=offset-x - y/=consoleScreenBufferInfo.dwSize.x + # #9641: add another slash because this is an integer, otherwise int/float conflict is seen and backspacing fails. + y//=consoleScreenBufferInfo.dwSize.x y+=consoleScreenBufferInfo.srWindow.Top return x,y