gum icon indicating copy to clipboard operation
gum copied to clipboard

gum input and gum filter handle input strangely after moving cursor to the start

Open keevan opened this issue 3 years ago • 0 comments

Describe the bug gum input and gum filter seem to jump to the end of the line when an input is made after moving the cursor back to the start of the line. This only appears to happen the cursor is at the starting character.

To Reproduce Steps to reproduce the behavior:

  1. Run gum input
  2. Type "Hello World"
  3. Go to the start of the line (e.g. hold the left key or alt + left your way back)
  4. Confirm you are at the starting character
  5. Proceed to type "12345"

Expected behavior I'm expecting the final state to be 12345Hello World

Screenshots Final output:

$ gum input
> 1Hello World2345

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser N/A
  • Version 22
  • Terminal kitty 0.25.2

keevan avatar Sep 11 '22 10:09 keevan