Sha256: 1f8c6941a770a6883001b82546339232cb6efcd8b79b3d906891431d827f329b
Contents?: true
Size: 423 Bytes
Versions: 38
Compression:
Stored size: 423 Bytes
Contents
module Redcar class AutoCompleter class ListDialog < Redcar::ModelessListDialog def initialize(prefix,document) super() @prefix = prefix @doc = document end def selected(index) if text = select(index) offset = @doc.cursor_offset - @prefix.length @doc.replace(offset, @prefix.length, text) close end end end end end
Version data entries
38 entries across 38 versions & 2 rubygems