expand: minor simplification of mode logic

This commit is contained in:
Sebastian Bentmar Holgersson
2023-01-27 21:08:16 +01:00
committed by Sylvestre Ledru
parent 1bf723fe40
commit 999957791a
+1 -2
View File
@@ -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))