Re: url display in location bar

Johannes Hofmann <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Sat, Sep 06, 2014 at 07:40:19PM +0000, eocene wrote:
> 
> I often wish that dillo would show the beginning of the URL instead
> of the end. ("Where am I in this tab?")
> 
> diff -r b28e4a47d4a1 src/ui.cc
> --- a/src/ui.cc Sat Sep 06 16:56:22 2014 +0000
> +++ b/src/ui.cc Sat Sep 06 19:33:36 2014 +0000
> @@ -816,7 +816,7 @@
>  {
>     if (!str) str = "";
>     Location->value(str);
> -   Location->position(strlen(str));
> +   Location->position((Fl::focus() == Location) ? strlen(str) : 0);
>  }
>  
>  /*
> 

Looks good to me.

 Johannes
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.