mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
Rename incorrect is_single_byte_escape_seq to is_three_byte_escape_seq.
This commit is contained in:
parent
060a068a3c
commit
18cf2b8509
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ static bool is_osc_escape_seq(const wchar_t *code, size_t *resulting_length) {
|
|||
}
|
||||
|
||||
/// Generic VT100 three byte sequence: CSI followed by something in the range @ through _.
|
||||
static bool is_single_byte_escape_seq(const wchar_t *code, size_t *resulting_length) {
|
||||
static bool is_three_byte_escape_seq(const wchar_t *code, size_t *resulting_length) {
|
||||
bool found = false;
|
||||
if (code[1] == L'[' && (code[2] >= L'@' && code[2] <= L'_')) {
|
||||
*resulting_length = 3;
|
||||
|
@ -253,7 +253,7 @@ size_t escape_code_length(const wchar_t *code) {
|
|||
if (!found) found = is_visual_escape_seq(code, &esc_seq_len);
|
||||
if (!found) found = is_screen_name_escape_seq(code, &esc_seq_len);
|
||||
if (!found) found = is_osc_escape_seq(code, &esc_seq_len);
|
||||
if (!found) found = is_single_byte_escape_seq(code, &esc_seq_len);
|
||||
if (!found) found = is_three_byte_escape_seq(code, &esc_seq_len);
|
||||
if (!found) found = is_csi_style_escape_seq(code, &esc_seq_len);
|
||||
if (!found) found = is_two_byte_escape_seq(code, &esc_seq_len);
|
||||
if (found) cached_layouts.add_escape_code(wcstring(code, esc_seq_len));
|
||||
|
|
Loading…
Reference in a new issue