Fix ctrl-b and ctrl-f

This commit is contained in:
Junegunn Choi 2013-10-24 10:30:24 +09:00
parent cb0246add6
commit b54fd30edb

4
fzf
View File

@ -328,8 +328,8 @@ begin
:left => proc { cursor = [0, cursor - 1].max },
:right => proc { cursor = [input.length, cursor + 1].min },
}.tap { |actions|
actions[ctrl :b] = actions[68]
actions[ctrl :f] = actions[67]
actions[ctrl :b] = actions[:left]
actions[ctrl :f] = actions[:right]
actions[ctrl :h] = actions[127]
actions[ctrl :n] = actions[ctrl :j]
actions[ctrl :p] = actions[ctrl :k]