Skip to content

Commit a355105

Browse files
committed
fix(commit): not leaving insert mode after confirming w/ <C-CR> (#26)
1 parent b788897 commit a355105

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/tinygit/commands/commit/msg-input.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ local function setupKeymaps(confirmationCallback)
9191
-- confirm and close
9292
confirmationCallback(commitSubject, commitBody)
9393
vim.cmd.bwipeout(bufnr)
94+
vim.cmd.stopinsert() -- when confirming in insert mode don't stay in insert mode
9495
end
9596

9697
map("n", conf.keymaps.normal.confirm, confirm)

0 commit comments

Comments
 (0)