magenta404 · GitHub

  • Have you checked if problem occurs with fish 2.4.0?
  • Tried fish without third-party customizations (check sh -c 'env HOME=$(mktemp -d) fish')?

fish version installed (fish --version):
fish, version 2.4.0

OS/terminal used:
macOS 10.12.*
iTerm2 3.*

The prompt selection is including an extra character (the one in front of the cursor).

Reproduction steps

  1. Setup:
function fish_user_key_bindings
  bind \ce begin-selection
  bind \cr kill-selection
end
  1. Place the cursor somewhere except the beginning or end:

testing

  1. control+e then left or right

  2. control+r

Results

After left:
testing-left
After left kill:
testing-left-del
After right:
testing-right
After right kill:
testing-right-del

Read the original on github.com ↗