File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1487,6 +1487,8 @@ M.n_next_section = function(self)
1487
1487
if section then
1488
1488
local position = section .position .row_end + 2
1489
1489
self .buffer :move_cursor (position )
1490
+ else
1491
+ self .buffer :move_cursor (self .buffer .ui :first_section ().first + 1 )
1490
1492
end
1491
1493
end
1492
1494
end
@@ -1499,8 +1501,11 @@ M.n_prev_section = function(self)
1499
1501
local prev_section = self .buffer .ui :get_current_section (section .position .row_start - 1 )
1500
1502
if prev_section then
1501
1503
self .buffer :move_cursor (prev_section .position .row_start + 1 )
1504
+ return
1502
1505
end
1503
1506
end
1507
+
1508
+ self .buffer :win_exec (" norm! gg" )
1504
1509
end
1505
1510
end
1506
1511
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ function M.get_default_values()
359
359
graph_style = " ascii" ,
360
360
commit_date_format = nil ,
361
361
log_date_format = nil ,
362
- process_spinner = true ,
362
+ process_spinner = vim . opt . cmdheight : get () > 0 ,
363
363
filewatcher = {
364
364
enabled = true ,
365
365
},
You can’t perform that action at this time.
0 commit comments