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

ui: do not write() to channel if builtin pager has terminated #4209

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Aug 4, 2024

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

Copy link
Contributor

@ilyagr ilyagr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Seems to me like this should work. @ErichDonGubler , WDYT?

In principle, an approach closer to the one from #4187 would give us more control and maybe allow us not to lose output in #4197. I'm not sure it's worth it, especially if we might jump over to streampager anyway.

cli/src/ui.rs Show resolved Hide resolved
Copy link
Contributor

@ilyagr ilyagr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm hoping a fix to this can go in before the release, but let's wait a day before merging to give people time to look at this.

cli/src/ui.rs Outdated Show resolved Hide resolved
Copy link

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I like this much better than #4187. I believe it's more robust, even. Cheers!

@yuja yuja force-pushed the push-svyrpmkqzkll branch from 9f70289 to b5b5369 Compare August 5, 2024 01:23
@yuja yuja enabled auto-merge (rebase) August 5, 2024 01:25
@yuja yuja merged commit f4dd856 into jj-vcs:main Aug 5, 2024
17 checks passed
@yuja yuja deleted the push-svyrpmkqzkll branch August 5, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants