Skip to content

Commit

Permalink
Improve placement of command in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Dec 17, 2023
1 parent 5cc9378 commit 57b5610
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/neogit/buffers/editor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 71,11 @@ function M:open()

-- stylua: ignore
local help_lines = {
"# Neogit Commands:",
string.format("# %s close", pad_mapping("Close")),
string.format("# %s tell Git to make it happen", pad_mapping("Submit")),
string.format("# %s tell Git that you changed your mind, i.e. abort", pad_mapping("Abort")),
"#"
"#",
"# Commands:",
string.format("# %s Close", pad_mapping("Close")),
string.format("# %s Submit", pad_mapping("Submit")),
string.format("# %s Abort", pad_mapping("Abort")),
}

help_lines = util.filter_map(help_lines, function(line)
Expand All @@ -84,7 84,7 @@ function M:open()
end
end)

local line = vim.fn.search("# Changes to be committed:") - 2
local line = vim.fn.search("^#$") - 1
buffer:set_lines(line, line, false, help_lines)
buffer:write()
buffer:move_cursor(1)
Expand Down

0 comments on commit 57b5610

Please sign in to comment.