Re: How to link to a specific bug report?

"corvid" <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <20121224002801.GA18796@local>
As for the bug itself, at least, does the attached fix everything?

_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
url_location.diff (text/plain, 1.2 KB)
diff -r fad64a163574 src/dillo.cc
--- a/src/dillo.cc	Sun Dec 23 22:27:01 2012 +0000
+++ b/src/dillo.cc	Mon Dec 24 00:25:47 2012 +0000
@@ -427,8 +427,10 @@
       if (dStrAsciiCasecmp(URL_SCHEME(prefs.start_page), "about") == 0 &&
           strcmp(URL_PATH(prefs.start_page), "blank") == 0)
          a_UIcmd_open_url(bw, NULL); // NULL URL focuses location
-      else
+      else {
          a_UIcmd_open_url(bw, prefs.start_page);
+         a_UIcmd_set_location_text(bw, URL_STR(prefs.start_page));
+      }
    } else {
       for (int i = idx; i < argc; i++) {
          DilloUrl *start_url = makeStartUrl(argv[i], local);
@@ -443,6 +445,7 @@
             }
          } else {
             a_UIcmd_open_url(bw, start_url);
+            a_UIcmd_set_location_text(bw, URL_STR(start_url));
          }
          a_Url_free(start_url);
       }
diff -r fad64a163574 src/uicmd.cc
--- a/src/uicmd.cc	Sun Dec 23 22:27:01 2012 +0000
+++ b/src/uicmd.cc	Mon Dec 24 00:25:47 2012 +0000
@@ -699,6 +699,7 @@
     */
    if (url) {
       a_Nav_push(new_bw, url, NULL);
+      a_UIcmd_set_location_text(new_bw, URL_STR(url));
       BW2UI(new_bw)->focus_main();
    } else {
       BW2UI(new_bw)->focus_location();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.