Crash when moving cursor left

Bug #284485 reported by David Clymer
2
Affects Status Importance Assigned to Milestone
Lyntin
In Progress
Critical
David Clymer

Bug Description

I cannot trigger the bug when there is no text in the box, however, after I have typed a character, whenever I attempt to move the cursor left, I get the following error:

Focus Widget <lyntin.ui.urwidui.CommandEdit object at 0x1e943d0> at position 573 within listbox calculated cursor coords (14, 0) but rendered cursor coords (15, 0)!
Traceback (most recent call last):
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwidui.py", line 1106, in main
    self.focus_window(self.focus)
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwidui.py", line 1059, in focus_window
    self.windows[name].draw()
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwidui.py", line 900, in draw
    self.ui.draw_screen( self.getSize(), self.getCanvas() )
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwidui.py", line 904, in getCanvas
    return self.frame.render( self.getSize(), self.ui )
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwid/widget.py", line 85, in cached_render
    canv = fn(self, size, focus=focus)
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwid/widget.py", line 1976, in render
    focus and self.focus_part == 'body')
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwid/widget.py", line 121, in finalize_render
    canv = fn(self, size, focus=focus)
  File "/home/david/Development/personal/lyntin.dc/lyntin/ui/urwid/listbox.py", line 342, in render
    raise ListBoxError, "Focus Widget %s at position %s within listbox calculated cursor coords %s but rendered cursor coords %s!" %(`focus_widget`,`focus_pos`,`cursor`,`c_cursor`)
ListBoxError: Focus Widget <lyntin.ui.urwidui.CommandEdit object at 0x1e943d0> at position 573 within listbox calculated cursor coords (14, 0) but rendered cursor coords (15, 0)!

Related branches

David Clymer (vezult)
Changed in lyntin4:
assignee: nobody → vezult
importance: Undecided → Critical
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.