commit 0b442ded38304c66eae70d68bdb0a9a4e7315017 from: Omar Polo date: Fri Jul 16 15:35:19 2021 UTC [minibuffer] jump_to_line: set the top_line too This way, commands like toc, link-select & co will jump to the line and make that the first line in the window. commit - f6ad0de1d56782667f64af5fa06ab332a53e9e4c commit + 0b442ded38304c66eae70d68bdb0a9a4e7315017 blob - 939a3605495e7bb2561baf8fa99a9a2609c3a561 blob + c9515efc092ba97dacf2be9558f0b2c30d6b5a84 --- minibuffer.c +++ minibuffer.c @@ -282,8 +282,10 @@ jump_to_line(struct line *l) if (vl == NULL) message("Ops, %s error! Please report to %s", __func__, PACKAGE_BUGREPORT); - else + else { + tab->buffer.top_line = vl; tab->buffer.current_line = vl; + } } void