zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.05k stars 2.96k forks source link

Vim normal mode: pressing `delete` key at the end of a line doesn't remove the character #16511

Open Conaclos opened 2 months ago

Conaclos commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Steps to reproduce:

Current behavior: nothing happens

Expected behavior: the last character (here c) should be removed

Environment

Zed: v0.148.1 (Zed) OS: Linux Wayland arch unknown Memory: 15.4 GiB Architecture: x86_64 GPU: Intel(R) Graphics (ADL GT2) || Intel open-source Mesa driver || Mesa 24.1.6-arch1.1

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

No response

notpeter commented 2 months ago

I am able to reproduce this behavior although I think you meant your reproduction steps to be:

  1. insert 'abc'
  2. escape to normal mode
  3. d$ (deletes the 'c')
  4. DEL key (does nothing, should delete the 'b')
Conaclos commented 2 months ago

d$ (deletes the 'c')

Actually I meant $ (without d).

ConradIrwin commented 1 month ago

Thanks for reporting this! If you want to pair with me on a fix: https://calendly.com/conradirwin/pairing