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

Gracefully handle the editor exiting with a non-zero exit code #59

Open
Calamitous opened this issue Jan 22, 2023 · 0 comments
Open

Gracefully handle the editor exiting with a non-zero exit code #59

Calamitous opened this issue Jan 22, 2023 · 0 comments

Comments

@Calamitous
Copy link
Owner

Suggested by akspecs:

Someone who uses vim can force vim to exit with a non zero exit status
with `:cq'

Perhaps the same is possible with other editors, but I've only tested
this with vim.  When editing a post and choosing to `:cq' out of the
editor (git effectively aborts a commit [--amend / other]), iris will
swallow the post, seemingly without a trace or a deleted message in the
thread it may have used to be a part of.

This may be worth noting, or even a feature -- and not a bug.  But I
figured I'd write you here to see what you think.

I reckon if iris were to acknowledge the exit error of the editor and
effectively abort any edits, that would be a behaviour that syncs up
more with the expected behaviour git.
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

No branches or pull requests

1 participant