commit 4aaf5de005720fd3086c249f6854b51a6c86ea92 from: Omar Polo date: Tue Jan 18 13:51:33 2022 UTC typo in parse_session_line without +4 strtonum sees top=X and cur=Y which are invalid numbers, so the scroll position is lost. commit - 8d39ecac31b149e6d285c931679c7463daebf273 commit + 4aaf5de005720fd3086c249f6854b51a6c86ea92 blob - df5c9e0f7f76af2a8f2d3d32e0c10c254f96ed4b blob + eb0e0e72278479b0d75de55646689c421aa9b1df --- fs.c +++ fs.c @@ -725,9 +725,9 @@ parse_session_line(char *line) else if (!strcmp(ap, "killed")) tab.flags |= TAB_KILLED; else if (has_prefix(ap, "top=")) - tab.top_line = strtonum(ap, 0, UINT32_MAX, NULL); + tab.top_line = strtonum(ap+4, 0, UINT32_MAX, NULL); else if (has_prefix(ap, "cur=")) - tab.current_line = strtonum(ap, 0, UINT32_MAX, NULL); + tab.current_line = strtonum(ap+4, 0, UINT32_MAX, NULL); } if (tab.top_line > tab.current_line) {