diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 53b3cfe..a279e24 100644 --- a/src/config.rs +++ b/src/config.rs @@ -22,6 +22,16 @@ impl Config { choice.end = choice.end - 1; } } + + if opt.one_indexed { + if choice.start > 0 { + choice.start -= 1; + } + + if choice.end > 0 { + choice.end -= 1; + } + } } let separator = match Regex::new(match &opt.field_separator { |