wip fixes for the new IC10Editor changes

This commit is contained in:
2025-12-05 14:31:53 -07:00
parent aee3eca4f5
commit 7a72982797
3 changed files with 25 additions and 35 deletions

View File

@@ -131,11 +131,11 @@ public static class Marshal
}
}
public static unsafe Line TokenizeLine(string inputString)
public static unsafe StyledLine TokenizeLine(string inputString)
{
if (string.IsNullOrEmpty(inputString) || !EnsureLibLoaded())
{
return new Line(inputString);
return new StyledLine(inputString ?? "");
}
fixed (char* ptrInputStr = inputString)
@@ -147,7 +147,7 @@ public static class Marshal
};
var tokens = Ffi.tokenize_line(strRef);
L.Debug($"Tokenized line '{inputString}' into {tokens.len} tokens.");
return tokens.ToLine(inputString);
}
}