Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / inquirer / lib / prompts / rawlist.js
index 17bfa0b287c0f6bdf123b87dc37c40c6a63c7363..50f7c4e578494020b5e51646235497e8edb8dbcf 100644 (file)
@@ -49,7 +49,8 @@ class RawListPrompt extends Base {
     // Make sure no default is set (so it won't be printed)
     this.opt.default = null;
 
-    this.paginator = new Paginator();
+    const shouldLoop = this.opt.loop === undefined ? true : this.opt.loop;
+    this.paginator = new Paginator(undefined, { isInfinite: shouldLoop });
   }
 
   /**