jesseduffield / jesseduffield/lazygit

Option+Enter commits from title field but appends "m" when used from description field

Open
#5,521 2 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug

When writing a commit message with both a title and description, pressing Option + Enter from within
the description field no longer commits the staged files. Instead, the letter m is appended to the
description text and the commit is not made.

### To Reproduce

Steps to reproduce the behavior:

1. Stage one or more files
2. Open the commit panel and type a commit title
3. Add a description (navigate to the description field)
4. Press Option + Enter to commit

Expected: files are committed
Actual: m is appended to the description; no commit is made

### Expected behavior

Pressing Option + Enter from the description field should commit the staged files, as it previously
did.

### Version info:

commit=, build date=, build source=Homebrew, version=0.61.1, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)

### Terminal info:

Ghostty + tmux

### Additional context

This regression requires a workaround: exit the commit panel and trigger the commit from the commit
title field instead. The shortcut works correctly when focused on the title field, but not from the
description field.

---

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.