aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2018-05-18 11:16:31 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2018-05-18 11:16:31 +0200
commit6eef87e59cb256ca8a4e756f45fed7284b852a01 (patch)
tree74723ddad8e4c1980056ea32e3d4592ea945553c
parentRelease 0.7.7 (diff)
downloadelogv-6eef87e59cb256ca8a4e756f45fed7284b852a01.tar.gz
elogv-6eef87e59cb256ca8a4e756f45fed7284b852a01.tar.bz2
elogv-6eef87e59cb256ca8a4e756f45fed7284b852a01.zip
Fix window computation not being int, closes #8
-rwxr-xr-xelogv4
1 files changed, 2 insertions, 2 deletions
diff --git a/elogv b/elogv
index 9ead73b..86c67c2 100755
--- a/elogv
+++ b/elogv
@@ -619,8 +619,8 @@ class ElogViewer:
def show_help(self):
# Setup help window
- helpwin_height = self.height / 3 * 2
- helpwin_corner = (self.height / 6, self.width// 2 - 40)
+ helpwin_height = self.height // 3 * 2
+ helpwin_corner = (self.height // 6, self.width // 2 - 40)
helpwin = curses.newwin(helpwin_height, 80,
helpwin_corner[0], helpwin_corner[1])
helplines = helptext.splitlines()