1
0
mirror of https://github.com/nushell/nushell.git synced 2025-06-10 03:56:49 +02:00
Solomon 31e1f49cb6
fix ranges over zero-length input ()
Fixes 

# User-Facing Changes

Fixes panics when slicing empty input with inclusive ranges:

```nushell
> random binary 0 | bytes at 0..0
Error:   x Main thread panicked.
  |-> at crates/nu-protocol/src/value/range.rs:118:42
  `-> attempt to subtract with overflow
```
2025-02-08 19:57:28 -05:00
..