Skip to content

fix(revlog): clear commit message area when switching commits (#2680)#2943

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/commit-message-ghost-text-2680
Open

fix(revlog): clear commit message area when switching commits (#2680)#2943
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:fix/commit-message-ghost-text-2680

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

When browsing commits in the log view, fragments of a previous commit message could remain visible until the window was resized.

Clear the message panel before each redraw and reset the cached wrap width when set_commit runs so the new message fully replaces the old content.

Closes #2680.

Test plan

  • Log tab → show commit details → move up/down through commits with different message lengths
  • No ghost text from the previous commit message
  • Resize still works as before

Made with Cursor

…org#2680)

Clear the message panel before redraw and reset cached width when the
selected commit changes to avoid ghost text from the previous message.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Stuck text in Commit Message

1 participant