File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,7 @@ type GridLine =
218218 row: int
219219 col_start: int
220220 cells: GridCell []
221+ wrap: bool
221222 }
222223
223224[<Struct>]
@@ -624,8 +625,11 @@ let parse_grid_cell (x: obj) =
624625
625626let parse_grid_line ( x : obj ) =
626627 match x with
627- | ObjArray [| ( Integer32 grid); ( Integer32 row) ; ( Integer32 col_ start) ; P( parse_ grid_ cell) cells |]
628- -> Some { grid = grid; row= row; col_ start= col_ start; cells= cells}
628+ | ObjArray [| ( Integer32 grid); ( Integer32 row) ; ( Integer32 col_ start) ; P( parse_ grid_ cell) cells ; ( Bool wrap) |]
629+ -> Some { grid = grid; row= row; col_ start= col_ start; cells= cells; wrap= wrap}
630+ // neovim < 0.92 doesn't pass wrap
631+ | ObjArray [| ( Integer32 grid); ( Integer32 row) ; ( Integer32 col_ start) ; P( parse_ grid_ cell) cells |]
632+ -> Some { grid = grid; row= row; col_ start= col_ start; cells= cells; wrap= false }
629633 | _ -> None
630634
631635let parse_win_pos ( x : obj ) =
You can’t perform that action at this time.
0 commit comments