Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vi-mode: dd and dG don't work properly with a blank line at the end of buffer #1376

Closed
Tracked by #278
DefaultGen opened this issue May 24, 2024 · 1 comment
Closed
Tracked by #278

Comments

@DefaultGen
Copy link

DefaultGen commented May 24, 2024

These don't work as expected when vi-mode is enabled and the last line of the buffer is blank:

  1. If you dd the last line, that line should be deleted and the cursor moved up one line. In lem, the cursor stays on the blank line.
  2. dG from an arbitrary line should delete everything to the end of the buffer and move the cursor up one line. In lem, it doesn't remove the blank last line and moves the cursor there.
  3. If you use dG on the blank last line of a buffer, it incorrectly deletes previous line (and keeps the blank line). It should just delete the blank line.
@cxxxr
Copy link
Member

cxxxr commented Jul 15, 2024

merge with #278

@cxxxr cxxxr closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants