[tor-commits] [arm/release] fix: getstr y argument wasn't being respected

atagar at torproject.org atagar at torproject.org
Sun Jul 17 06:08:27 UTC 2011


commit 4f8cd4c475d481453471191e435fa514267986a6
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Jun 22 18:58:05 2011 -0700

    fix: getstr y argument wasn't being respected
    
    Never used the row argument before - forgot to respect it in subwindow
    creation.
---
 src/util/panel.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/panel.py b/src/util/panel.py
index aa3ca27..3f0a98a 100644
--- a/src/util/panel.py
+++ b/src/util/panel.py
@@ -592,7 +592,7 @@ class Panel():
     
     # temporary subwindow for user input
     displayWidth = self.getPreferredSize()[1]
-    inputSubwindow = self.parent.subwin(1, displayWidth - x, self.top, self.left + x)
+    inputSubwindow = self.parent.subwin(1, displayWidth - x, self.top + y, self.left + x)
     
     # prepopulates the initial text
     if initialText: inputSubwindow.addstr(0, 0, initialText[:displayWidth - x - 1])





More information about the tor-commits mailing list