[PATCH 2/2] Fix the line counting when printing long widgets
Vratislav Podzimek
vpodzime at redhat.com
Fri Jun 26 06:55:59 UTC 2015
So that there are no gaps (missing lines).
Related: rhbz#1184378
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/tui/simpleline/base.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/tui/simpleline/base.py b/pyanaconda/ui/tui/simpleline/base.py
index 3d9b8b1..c4fe736 100644
--- a/pyanaconda/ui/tui/simpleline/base.py
+++ b/pyanaconda/ui/tui/simpleline/base.py
@@ -572,10 +572,10 @@ class UIScreen(object):
# prompt (2 lines)
for line in lines[pos:]:
print(line)
- pos += self._screen_height - 1
+ pos += self._screen_height - 2
else:
# print part with a prompt to continue
- for line in lines[pos:(pos + self._screen_height - 2)]:
+ for line in lines[pos:(pos + self._screen_height - 1)]:
print(line)
self._app.raw_input(_("Press ENTER to continue"))
pos += self._screen_height - 1
--
2.1.0
More information about the anaconda-patches
mailing list