fix for sure this time

This commit is contained in:
UnknownShadow200 2018-07-24 19:26:15 +10:00
parent 695cd9ab52
commit b5f010f0bb
2 changed files with 4 additions and 4 deletions

View File

@ -267,8 +267,8 @@ namespace ClassicalSharp.Gui.Widgets {
for (; i < total && chars[i] != ' '; i++) {
// Is this character the start of a line
bool isBeg = false;
for (int j = 0; j < lines.Length; i++) {
if (j == begs[j]) { isBeg = true; break; }
for (int j = 0; j < lines.Length; j++) {
if (i == begs[j]) { isBeg = true; break; }
}
// Definitely not a multilined URL

View File

@ -2342,8 +2342,8 @@ Int32 TextGroupWidget_UrlEnd(UChar* chars, Int32 total, Int32* begs, Int32 i) {
for (; i < total && chars[i] != ' '; i++) {
/* Is this character the start of a line */
bool isBeg = false;
for (j = 0; j < lines.Length; i++) {
if (j == begs[j]) { isBeg = true; break; }
for (j = 0; j < lines.Length; j++) {
if (i == begs[j]) { isBeg = true; break; }
}
/* Definitely not a multilined URL */