Sha256: c0e3016f63d2eb150392c4d255529c5cdea170809c3948031312e4543a6ad1e3

Contents?: true

Size: 291 Bytes

Versions: 15

Compression:

Stored size: 291 Bytes

Contents

require "tty-prompt"
require "tty-screen"

module Nextgen::Ext
  module Prompt::List
    def initialize(...)
      super
      @per_page ||= [TTY::Prompt::Paginator::DEFAULT_PAGE_SIZE, TTY::Screen.height.to_i - 3].max
    end
  end
end

TTY::Prompt::List.prepend(Nextgen::Ext::Prompt::List)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nextgen-0.14.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.13.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.12.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.11.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.10.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.9.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.8.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.7.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.6.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.5.1 lib/nextgen/ext/prompt/list.rb
nextgen-0.5.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.4.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.3.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.2.0 lib/nextgen/ext/prompt/list.rb
nextgen-0.1.0 lib/nextgen/ext/prompt/list.rb