mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
core: scroll to bottom of window after reaching first or last highlight with keys alt+"p" / alt+"n"
This commit is contained in:
committed by
Sebastien Helleu
parent
bd7332455d
commit
19d03e691b
@@ -1354,6 +1354,8 @@ gui_window_scroll_previous_highlight (struct t_gui_window *window)
|
||||
}
|
||||
ptr_line = ptr_line->prev_line;
|
||||
}
|
||||
/* no previous highlight, scroll to bottom */
|
||||
gui_window_scroll_bottom (window);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1387,6 +1389,8 @@ gui_window_scroll_next_highlight (struct t_gui_window *window)
|
||||
}
|
||||
ptr_line = ptr_line->next_line;
|
||||
}
|
||||
/* no next highlight, scroll to bottom */
|
||||
gui_window_scroll_bottom (window);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user