Fix invisible cursor in input box
authorJack Miller <jack@codezen.org>
Wed, 28 Jun 2017 03:48:39 +0000 (22:48 -0500)
committerJack Miller <jack@codezen.org>
Wed, 28 Jun 2017 03:48:39 +0000 (22:48 -0500)
canto_curses/input.py

index 24b12c3..5777425 100644 (file)
@@ -95,6 +95,7 @@ class InputBox(GuiBase):
             pass
         self.x = self.pad.getyx()[1]
         self.pad.clrtoeol()
+        self.pad.move(0, min(maxx - 1, self.minx + get_rlpoint()))
         self.callbacks["refresh"]()
 
     def redraw(self):