3 class LogMode < TextMode
5 k.add :toggle_follow, "Toggle follow mode", 'f'
17 jump_to_line lines - buffer.content_height + 1 # leave an empty line at bottom
26 follow_top = lines - buffer.content_height + 1
27 jump_to_line follow_top if topline < follow_top
34 follow_top = lines - buffer.content_height + 1
35 jump_to_line follow_top if topline < follow_top
40 super + " (follow: #@follow)"