asweigart/pygcurse — pull request #3 by multimaze (2012-02-18 21:59:16+00:00)
Title: Fixed an IndexError that appeared on setting negative cursor coordinates

window = pygcurse.PygcurseWindow(40, 25)
window.cursorx = -1

This produced an Index Error, because self._width - x becomes 40 - -1 = 41 instead of the intended 39.