Skip to content

Commit dc926b9

Browse files
authored
Merge pull request #1609 from NeogitOrg/dev
2 parents 9d5ac8f + 40c6bd7 commit dc926b9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lua/neogit/buffers/status/actions.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,8 @@ M.n_next_section = function(self)
14871487
if section then
14881488
local position = section.position.row_end + 2
14891489
self.buffer:move_cursor(position)
1490+
else
1491+
self.buffer:move_cursor(self.buffer.ui:first_section().first + 1)
14901492
end
14911493
end
14921494
end
@@ -1499,8 +1501,11 @@ M.n_prev_section = function(self)
14991501
local prev_section = self.buffer.ui:get_current_section(section.position.row_start - 1)
15001502
if prev_section then
15011503
self.buffer:move_cursor(prev_section.position.row_start + 1)
1504+
return
15021505
end
15031506
end
1507+
1508+
self.buffer:win_exec("norm! gg")
15041509
end
15051510
end
15061511

lua/neogit/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function M.get_default_values()
359359
graph_style = "ascii",
360360
commit_date_format = nil,
361361
log_date_format = nil,
362-
process_spinner = true,
362+
process_spinner = vim.opt.cmdheight:get() > 0,
363363
filewatcher = {
364364
enabled = true,
365365
},

0 commit comments

Comments
 (0)