Skip to content

Commit 25e00aa

Browse files
committed
Use byte string
1 parent 1757b79 commit 25e00aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xterm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn read_color_response(r: &mut Reader<'_>) -> Result<Vec<u8>> {
121121

122122
// If we get the response for DA1 back first, then we know that
123123
// the terminal does not recocgnize the color query.
124-
if !r.buffer().starts_with(&[b']']) {
124+
if !r.buffer().starts_with(b"]") {
125125
_ = consume_da1_response(r, false);
126126
return Err(Error::UnsupportedTerminal);
127127
}

0 commit comments

Comments
 (0)