We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bc0a58 + b6ae9c7 commit 8e265d2Copy full SHA for 8e265d2
lua/neogit/buffers/status/actions.lua
@@ -72,11 +72,13 @@ local function translate_cursor_location(self, item)
72
end
73
74
local function open(type, path, cursor)
75
- local command = ("silent! %s %s | %s | redraw! | norm! zz"):format(
76
- type,
77
- fn.fnameescape(path),
78
- cursor and cursor[1] or "1"
79
- )
+ local command = ("silent! %s %s | %s"):format(type, fn.fnameescape(path), cursor and cursor[1] or "1")
+
+ logger.debug("[Status - Open] '" .. command .. "'")
+ vim.cmd(command)
80
81
+ command = "redraw! | norm! zz"
82
83
logger.debug("[Status - Open] '" .. command .. "'")
84
0 commit comments