mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +00:00
Merge pull request #408 from nodakai/cat-range-three-dots
cat: range pattern now should use three dots.
This commit is contained in:
commit
24d2730208
1 changed files with 4 additions and 4 deletions
|
@ -221,16 +221,16 @@ fn write_bytes(files: Vec<String>, number: NumberingMode, squeeze_blank: bool,
|
|||
}
|
||||
} else if show_nonprint {
|
||||
let byte = match byte {
|
||||
128 .. 255 => {
|
||||
128 ... 255 => {
|
||||
writer.write_str("M-").unwrap();
|
||||
byte - 128
|
||||
},
|
||||
_ => byte,
|
||||
};
|
||||
match byte {
|
||||
0 .. 31 => writer.write(['^' as u8, byte + 64]),
|
||||
127 => writer.write(['^' as u8, byte - 64]),
|
||||
_ => writer.write_u8(byte),
|
||||
0 ... 31 => writer.write(['^' as u8, byte + 64]),
|
||||
127 => writer.write(['^' as u8, byte - 64]),
|
||||
_ => writer.write_u8(byte),
|
||||
}
|
||||
} else {
|
||||
writer.write_u8(byte)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue