1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00
wezterm/vtparse/src
Wez Furlong ff153ba27f vtparse: recognize utf8 encoded c1 codes in more cases
There were two bugs here:

* \u8D (the utf8 encoded representation of 0x8d, aka: RI) was not
  recognized as a C1 code and was instead passed through as printable
  text.
* The \u8D is a zero-width sequence which means that a subsequent
  set_cell call on the new empty-by-default line wouldn't allocate
  any cells in the line array, and the assigment to the line would
  panic.

This commit avoids the panic for the second case, and then fixes up
the vtparser to correctly recognize the sequence as a C1 control.

refs: https://github.com/wez/wezterm/issues/768
2021-05-08 00:39:29 -07:00
..
enums.rs vtparse: Add utf-8 support 2019-06-29 16:15:15 -07:00
lib.rs vtparse: recognize utf8 encoded c1 codes in more cases 2021-05-08 00:39:29 -07:00
transitions.rs vtparse: simplify TRANSITIONS const 2021-04-09 08:00:29 -07:00