Skip to content
Myr

Fix ctrl-b and ctrl-f

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent cb0246a · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:fzf+2 added-2 removed
326 unmodified lines
327 127 => proc { input[cursor -= 1] = '' if cursor > 0 },328 :left => proc { cursor = [0, cursor - 1].max },329 :right => proc { cursor = [input.length, cursor + 1].min },330 }.tap { |actions|331 actions[ctrl :b] = actions[68]332 actions[ctrl :f] = actions[67]331 actions[ctrl :b] = actions[:left]332 actions[ctrl :f] = actions[:right]333 actions[ctrl :h] = actions[127]334 actions[ctrl :n] = actions[ctrl :j]335 actions[ctrl :p] = actions[ctrl :k]336 }
42 unmodified lines