commit 31685d3627e898f2f994c9479df11449ebc7d979
parent 910592cf1e5ce6b155725f5b7366339469cfed2e
Author: Andrew Laack <andrew@laack.co>
Date: Mon, 5 Oct 2026 08:42:18 -0500
Fixed issue w/ first draw
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/main.cpp b/src/main.cpp
@@ -98,6 +98,11 @@ int main(int argc, char** argv) {
assert(cliDestination.t ==
STRING_DESTINATION); // we don't allow numeric link following on
// startup.
+
+ // this guarantees invariants we expect about ds
+ // we could set cols and lines here, but it's better to do this.
+
+ mainLoop(ds, b, KEY_RESIZE , COLS, LINES);
tryVisitSite(ds, b, cliDestination.destination);
}
diff --git a/src/render.cpp b/src/render.cpp
@@ -361,7 +361,6 @@ void handleResult(DrawState& ds, SiteLoadPair result) {
}
void tryVisitSite(DrawState& ds, Browser& b, std::string site) {
-
ds.bottomText = "Loading: " + site;
ds.timeToClearBottomText = getCurrentTime() + 5000;
draw(ds);