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

yG incorrectly truncates yanked text when last line wraps in vim mode #23589

Open
1 task done
koskeller opened this issue Jan 24, 2025 · 0 comments
Open
1 task done
Labels
bug [core label] editor Feedback for code editing, formatting, editor iterations, etc vim

Comments

@koskeller
Copy link

koskeller commented Jan 24, 2025

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When yanking to end of file (yG) on a wrapped line in vim mode, the operation truncates content after the first visual line break instead of copying the entire logical line.

Steps:

  1. Open file with wrapped content
  2. Position cursor at start
  3. Press yG

Expected (as in vim/nvim): Yanks entire file content including wrapped portions
Actual: Yanks only until first visual line break

Sample file content showing the issue:

Zed is already much closer to Vim. We have extensive "side-by-side" testing where we run headless Neovim to ensure our keyboard shortcuts do exactly the same thing. That said, there's always more to do, both to add the remaining minor motions zL/zH come to mind, and fix edge cases in things like d]}.

yG output:

Zed is already much closer to Vim. We have extensive "side-by-side" testing where we 

Zed Version and System Specs

Zed: v0.170.2 (Zed)
OS: macOS 14.6.1
Memory: 72 GiB
Architecture: x86_64

If applicable, add screenshots or screencasts of the incorrect state / behavior

Image

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

Zed.log

@koskeller koskeller added admin read bug [core label] labels Jan 24, 2025
@koskeller koskeller changed the title yG incorrectly truncates yanked text when last line wraps yG incorrectly truncates yanked text when last line wraps in vim mode Jan 24, 2025
@notpeter notpeter added vim editor Feedback for code editing, formatting, editor iterations, etc and removed triage labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] editor Feedback for code editing, formatting, editor iterations, etc vim
Projects
None yet
Development

No branches or pull requests

2 participants