mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
expand: minor simplification of mode logic
This commit is contained in:
parent
1bf723fe40
commit
999957791a
1 changed files with 1 additions and 2 deletions
|
@ -186,10 +186,9 @@ fn tabstops_parse(s: &str) -> Result<(RemainingMode, Vec<usize>), ParseError> {
|
|||
// then just use the default tabstops.
|
||||
if nums.is_empty() {
|
||||
nums = vec![DEFAULT_TABSTOP];
|
||||
remaining_mode = RemainingMode::None;
|
||||
}
|
||||
|
||||
if nums.len() == 1 {
|
||||
if nums.len() < 2 {
|
||||
remaining_mode = RemainingMode::None;
|
||||
}
|
||||
Ok((remaining_mode, nums))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue