Ryan Barry has uploaded a new change for review.

Change subject: Fix behavior with <END> on scrolling text fields
......................................................................

Fix behavior with <END> on scrolling text fields

If the amount to fill comes out negative, force it up so we don't
fail an assertion from urwid

Change-Id: I3740a1c31b2a83db8b63a49d4f4f30a0b3a64f7a
Signed-off-by: Ryan Barry <[email protected]>
---
M src/ovirt/node/ui/widgets.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/85/25285/1

diff --git a/src/ovirt/node/ui/widgets.py b/src/ovirt/node/ui/widgets.py
index 2dbef81..67e84a5 100644
--- a/src/ovirt/node/ui/widgets.py
+++ b/src/ovirt/node/ui/widgets.py
@@ -726,6 +726,8 @@
                 #Fake out empty entries
                 row = [(1, 0, 1), (0, 1)]
                 last_offset = 1
+            if fill < 0:
+                fill = 1
             out.append(row + [(fill, last_offset, '_'*fill)])
         return out
 


-- 
To view, visit http://gerrit.ovirt.org/25285
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3740a1c31b2a83db8b63a49d4f4f30a0b3a64f7a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <[email protected]>
_______________________________________________
node-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/node-patches

Reply via email to