ref: 73e84e6709adc1774db6ca075dcdc625e7fa31fc
parent: c9c28215513b8c35a8ff574ee9bb8ce16fb01a78
author: Julien Blanchard <[email protected]>
date: Mon Jan 11 10:31:36 EST 2021
Add resettitle()
--- a/castor.c
+++ b/castor.c
@@ -79,6 +79,12 @@
0
};
+void
+resettitle(void)
+{
+ message("castor9");
+}
+
Url *
current_url(void)
{
@@ -123,7 +129,7 @@
pldraw(textp, screen);
plinitentry(entryp, PACKN|FILLX, 0, c->url->raw, entryhit);
pldraw(entryp, screen);
- message("castor9");
+ resettitle();
}
void
@@ -391,7 +397,7 @@
close(fd);
page(url);
- message("castor9");
+ resettitle();
}else{
while((line = Brdstr(&body, '\n', 0)) != nil){
if(strbeg(line, "=>") == 0){
@@ -470,14 +476,13 @@
{
char buf[1024];
char *url;
+
+ resettitle();
strncpy(buf, "", sizeof(buf)-1);
- if(eenter(r->meta, buf, sizeof(buf), mouse) <= 0){
- message("castor9");
+ if(eenter(r->meta, buf, sizeof(buf), mouse) <= 0)
return;
- }
url = smprint("%s?%s", r->url->raw, buf);
- message("castor9");
gemini_get(urlparse(nil, url));
}