Fix issue with two multilined links, clicking on second link would use first url.

This commit is contained in:
UnknownShadow200 2016-06-25 23:37:52 +10:00
parent 29696560be
commit ec27a52fb1

View File

@ -139,7 +139,7 @@ namespace ClassicalSharp.Gui {
return 2;
}
prevFlags = 0;
prevFlags = LinkFlags.NewLink;
int nextHttp = line.IndexOf( "http://", start );
int nextHttps = line.IndexOf( "https://", start );
return nextHttp == -1 ? nextHttps : nextHttp;