« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/form/ListScrollForm.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js
index 7d2b083..daa640a 100644
--- a/ui/form/ListScrollForm.js
+++ b/ui/form/ListScrollForm.js
@@ -106,6 +106,12 @@ module.exports = class ListScrollForm extends Form {
     this.fixLayout()
   }
 
+  firstInput() {
+    this.scrollItems = 0
+
+    super.firstInput()
+  }
+
   getItemPos(item) {
     // Gets the position of the item in an unscrolled view.