You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needed in order to determine the rendered length of a string (that is the string without markup sections for color/style). Current version:
let style_regexp =Str.regexp "\\[[0-9]+m"letrendered_length : type a. (Format.formatter -> a -> unit) -> a -> int =funfa ->
Format.kasprintf Fun.id "%a" f a
|>Str.global_replace style_regexp ""|>String.to_seq
|>Seq.filter (func -> Char.code c <>27)
|>Seq.fold_left (funn_ -> n +1) 0
The text was updated successfully, but these errors were encountered:
Needed in order to determine the rendered length of a string (that is the string without markup sections for color/style). Current version:
The text was updated successfully, but these errors were encountered: