Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/neogit/buffers/rebase_editor/init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local a = require("neogit.lib.async")
local Buffer = require("neogit.lib.buffer")
local config = require("neogit.config")
local input = require("neogit.lib.input")
Expand Down Expand Up @@ -172,14 +173,13 @@ function M:open(kind)
[mapping["Edit"]] = line_action("edit", comment_char),
[mapping["Squash"]] = line_action("squash", comment_char),
[mapping["Fixup"]] = line_action("fixup", comment_char),
[mapping["Execute"]] = function(buffer)
[mapping["Execute"]] = a.void(function(buffer)
local exec = input.get_user_input("Execute")
if not exec then
return
end

buffer:insert_line("exec " .. exec)
end,
end),
[mapping["Drop"]] = function()
local line = vim.api.nvim_get_current_line()
if line:match(string.format("^%s ", comment_char)) then
Expand Down
4 changes: 2 additions & 2 deletions lua/neogit/buffers/status/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1114,9 +1114,9 @@ end
---@param _self StatusBuffer
---@return fun(): nil
M.n_init_repo = function(_self)
return function()
return a.void(function()
git.init.init_repo()
end
end)
end

---@param self StatusBuffer
Expand Down
Loading