commit 51dc2fa43014052f22b32332d00829ada9c52b3f from: Omar Polo date: Sat Jun 19 15:44:23 2021 UTC load about:help during the first startup commit - c25ddde1ca91e57c827a8e7733c4dffdebce2fde commit + 51dc2fa43014052f22b32332d00829ada9c52b3f blob - c1d967f490815b2e8de2b946fb61fc54f3703484 blob + 3ba4d3e4d8e9345a1655de012dc96fc5d3e8e706 --- ChangeLog +++ ChangeLog @@ -1,5 +1,7 @@ 2021-06-19 Omar Polo + * fs.c (load_last_session): load about:help during the first startup + * pages.c: added about:about, about:blank and about:help pages * defaults.c (config_setvari): add fill-column config to manage the max-width when filling the page. blob - b8fe7c58c56417d766e860d0d8a3e49d226a6866 blob + 30c46ecda4c84c1859d216abd5479f7583308c0b --- fs.c +++ fs.c @@ -430,8 +430,11 @@ load_last_session(void (*cb)(const char*)) ssize_t linelen; FILE *session; - if ((session = fopen(session_file, "r")) == NULL) + if ((session = fopen(session_file, "r")) == NULL) { + /* first time? */ + cb("about:help"); return 0; + } while ((linelen = getline(&line, &linesize, session)) != -1) { if ((nl = strchr(line, '\n')) != NULL)