commit 638823f847d99e105ee6671fe1c51f8f048a0e48 from: Omar Polo date: Tue Jan 18 12:02:54 2022 UTC don't reset scroll position if the cursor changed line If the user managed to move the cursor before the page load, don't restore the scroll position. This is to avoid unnecessary jumping and causing possible confusion on the user. commit - e795e9355a607cbda3790e5c651c1a6f829e4326 commit + 638823f847d99e105ee6671fe1c51f8f048a0e48 blob - 6b4c27951225c27c7399763b9ecfdfa8bd2231c0 blob + 463214cefab5e85af06151bd52e9f2946ceb7dd9 --- ui.c +++ ui.c @@ -1209,7 +1209,8 @@ ui_on_tab_loaded(struct tab *tab) stop_loading_anim(tab); message("Loaded %s", tab->hist_cur->h); - if (tab->hist_cur->current_off != 0) { + if (tab->hist_cur->current_off != 0 && + tab->buffer.current_line == TAILQ_FIRST(&tab->buffer.head)) { set_scroll_position(tab, tab->hist_cur->line_off, tab->hist_cur->current_off); redraw_tab(tab);