commit 5924d8d2a94a93e8440539665b961a7f03e78708 from: Omar Polo date: Wed Jul 21 15:30:16 2021 UTC jump to line in the current buffer! commit - 6534017424b779f625f5fa33b69f2c6428f979d5 commit + 5924d8d2a94a93e8440539665b961a7f03e78708 blob - 8daed403c2862ce0a79b5ca04c0d55f78ea393e3 blob + 8fbd3eb2958d1d7ffbcbcbce895990004b3f8e24 --- minibuffer.c +++ minibuffer.c @@ -278,9 +278,11 @@ static inline void jump_to_line(struct line *l) { struct vline *vl; - struct tab *tab = current_tab; + struct buffer *buffer; - TAILQ_FOREACH(vl, &tab->buffer.head, vlines) { + buffer = current_buffer(); + + TAILQ_FOREACH(vl, &buffer->head, vlines) { if (vl->parent == l) break; } @@ -289,8 +291,8 @@ jump_to_line(struct line *l) message("Ops, %s error! Please report to %s", __func__, PACKAGE_BUGREPORT); else { - tab->buffer.top_line = vl; - tab->buffer.current_line = vl; + buffer->top_line = vl; + buffer->current_line = vl; } }