File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,7 @@ let render_style term buf old_point new_point =
1164
1164
let render_point term buf old_point new_point =
1165
1165
render_style term buf old_point new_point;
1166
1166
(* Skip control characters, otherwise output will be messy. *)
1167
- if UChar. code new_point.LTerm_draw. char .core < 32 then
1167
+ if UChar. code ( Zed_char. core new_point.LTerm_draw. char ) < 32 then
1168
1168
Buffer. add_string buf unknown_utf8
1169
1169
else
1170
1170
Buffer. add_string buf (Zed_char_UTF8. of_t new_point.LTerm_draw. char )
@@ -1244,7 +1244,7 @@ let render_windows term kind handle_newlines matrix =
1244
1244
else begin
1245
1245
match ! (Array. unsafe_get line i) with
1246
1246
| LTerm_draw. Elem point ->
1247
- let code = UChar. code point.LTerm_draw. char .core in
1247
+ let code = UChar. code ( Zed_char. core point.LTerm_draw. char ) in
1248
1248
if handle_newlines && code = 10 then begin
1249
1249
(* Copy styles. *)
1250
1250
Array. unsafe_set res i (windows_char_info term point yspace);
@@ -1345,7 +1345,7 @@ let print_box_with_newlines_unix term matrix =
1345
1345
let rec loop x =
1346
1346
match ! (Array. unsafe_get line x) with
1347
1347
| Elem point ->
1348
- let code = UChar. code point.char .core in
1348
+ let code = UChar. code ( Zed_char. core point.char ) in
1349
1349
if x = cols then begin
1350
1350
if code = 10 && y < rows - 1 then
1351
1351
Buffer. add_char buf '\n'
Original file line number Diff line number Diff line change 1
1
(*
2
- * lTerm .ml
3
- * --------
2
+ * lTerm_buttons_impl .ml
3
+ * ---------------------
4
4
* Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org>
5
5
* Licence : BSD3
6
6
*
Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ let char_of_piece = function
597
597
598
598
let piece_of_point point =
599
599
match ! point with
600
- | Elem elem -> piece_of_char elem.char .core
600
+ | Elem elem -> piece_of_char ( Zed_char. core elem.char )
601
601
| WidthHolder _ -> None
602
602
603
603
let draw_piece ctx row col ?style piece =
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module Make (LiteralIntf: LiteralIntf.Type) = struct
20
20
let dummy = (Zed_char. unsafe_of_char ' ' , LTerm_style. none)
21
21
22
22
let of_string str =
23
- Array. map (fun chr -> (chr, LTerm_style. none)) str. Zed_string. chars
23
+ Array. map (fun chr -> (chr, LTerm_style. none)) ( Zed_string. chars str)
24
24
25
25
let aval_width= function
26
26
| Ok Zed_string. {len =_ ;width} -> width
@@ -54,7 +54,7 @@ module Make (LiteralIntf: LiteralIntf.Type) = struct
54
54
let chr= Zed_string. get str idx in
55
55
match Zed_char. prop chr with
56
56
| Other ->
57
- let code= UChar. int_of (Zed_string. get str idx).core in
57
+ let code= UChar. int_of (Zed_char. core ( Zed_string. get str idx)) in
58
58
Array. unsafe_set arr (idx + 0 )
59
59
(Zed_char. unsafe_of_char '\\' , LTerm_style. none);
60
60
Array. unsafe_set arr (idx + 1 )
@@ -102,7 +102,7 @@ module Make (LiteralIntf: LiteralIntf.Type) = struct
102
102
103
103
let stylise str style =
104
104
let str= Zed_string_UTF8. to_t_exn str in
105
- Array. map (fun chr -> (chr, style)) str .chars
105
+ Array. map (fun chr -> (chr, style)) ( Zed_string . chars str)
106
106
107
107
(* +-----------------------------------------------------------------+
108
108
| Parenthesis matching |
You can’t perform that action at this time.
0 commit comments