ConnorAtherton / rb-readline

Pure-Ruby Readline Implementation
BSD 3-Clause "New" or "Revised" License
248 stars 54 forks source link

Vi movement mode not implemented #21

Open manveru opened 13 years ago

manveru commented 13 years ago

Starting rb-readline and hitting escape crashes when set editing-mode vi is in ~/.inputrc.

Backtrace, just starting and hitting escape:

iota ~ % ruby -vr rbreadline -e 'p RbReadline.readline("> ")'
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
>/home/manveru/github/luislavena/rb-readline/lib/rbreadline.rb:4240:in `_rl_dispatch_subseq': undefined method `rl_vi_movement_mode' for RbReadline:Module (NoMethodError)
  from /home/manveru/github/luislavena/rb-readline/lib/rbreadline.rb:4229:in `_rl_dispatch'
  from /home/manveru/github/luislavena/rb-readline/lib/rbreadline.rb:4639:in `readline_internal_charloop'
  from /home/manveru/github/luislavena/rb-readline/lib/rbreadline.rb:4713:in `readline_internal'
  from /home/manveru/github/luislavena/rb-readline/lib/rbreadline.rb:4735:in `readline'
  from -e:1:in `<main>'
tylerhunt commented 12 years ago

Just ran into this issue myself.