Skip to content

Commit

Permalink
Initialize @trap_key to suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Oct 3, 2021
1 parent 1b00cae commit b42c098
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ def initialize(name, config, proc_scope)
@proc_scope = proc_scope
@width = nil
@scroll_top = 0
@trap_key = nil
end

def set_cursor_pos(col, row)
Expand Down

0 comments on commit b42c098

Please sign in to comment.