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

:wq is very slow while :w then :q is not #4871

Closed
sorenrade opened this issue Nov 24, 2022 · 2 comments
Closed

:wq is very slow while :w then :q is not #4871

sorenrade opened this issue Nov 24, 2022 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@sorenrade
Copy link

sorenrade commented Nov 24, 2022

Summary

Obviously this is not a pressing issue as this is not the intended use for hx but considering that performing the operations one after another is fast it seems like it could be an easy fix.

Thanks!

Reproduction Steps

Steps to reproduce:

  1. open a 1Mb, 20k line, plaintext file
  2. delete the last line
  3. :wq
  4. the save takes more than 10min

Alternatively :w then :q, there will be a reasonable amount of lag as the large file is written, maybe 10sec

Helix log

Nothing notable in the log

Platform

Linux 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Terminal Emulator

alacritty / zellij

Helix Version

helix 22.08.1 (66276ce)

@sorenrade sorenrade added the C-bug Category: This is a bug label Nov 24, 2022
@archseer
Copy link
Member

Duplicate of #3975

This was fixed in #2267

@sorenrade
Copy link
Author

Thanks! I'll test on main first next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants