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

Mark buffers created from stdin as modified #7431

Merged
merged 1 commit into from
Jun 26, 2023

Commits on Jun 23, 2023

  1. Mark buffers created from stdin as modified

    This resolves some confusing behavior where a scratch document created
    by piping into hx is discarded when navigating away from that document.
    
    We discard any scratch documents that are not modified and the original
    `Editor::new_file_from_stdin` would create unmodified documents. We
    refactor this function to create an empty document first and then to
    apply the text from stdin as a change.
    the-mikedavis committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    6642d9b View commit details
    Browse the repository at this point in the history