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

Line breaks lost when undoing a commit #1131

Open
5 tasks done
knomepasi opened this issue Nov 7, 2024 · 2 comments
Open
5 tasks done

Line breaks lost when undoing a commit #1131

knomepasi opened this issue Nov 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@knomepasi
Copy link

Thanks in advance for your bug report!

  • Have you reproduced issue in safe mode?
  • Have you used the debugging guide to try to resolve the issue?
  • Have you checked our FAQs to make sure your question isn't answered there?
  • Have you checked to make sure your issue does not already exist?
  • Have you checked you are on the latest release of Pulsar?

What happened?

After committing code with the Git sidebar ("Commit to $branch") and then clicking "Undo" on the newly-created commit, line breaks are lost from the commit message.

Pulsar version

1.122.0

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

Xubuntu 24.04

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

  1. Edit code
  2. Stage changes
  3. Write a multi-line commit message
  4. Commit changes
  5. Undo latest commit

Additional Information:

No response

@knomepasi knomepasi added the bug Something isn't working label Nov 7, 2024
@savetheclocktower
Copy link
Contributor

I can't promise we'll get to this soon, but it seems legit, and it's good for it to be recorded.

The commit message field is a full-fledged text editor, so you might try working around this by hitting Ctrl+Z a few times to see if it restores the older editor contents.

@knomepasi
Copy link
Author

Thank you for the reply!

The Ctrl+Z workaround does indeed work, though the first undo clears the commit field, only the second one returns the original commit message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants