diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2022-04-23 15:16:32 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2022-04-23 17:24:25 -0400 |
commit | dd636fa69ee0cb1f292a0c76605617a461b36e47 (patch) | |
tree | 47828e6a78305dbdfba959a1e15697f15eaa3454 /src/choice/mod.rs | |
parent | 97b3abf5204badf60eb79be6be07285bdef83049 (diff) |
Fix positive start, negative end, length 1 choice is empty42-unexpected-result-in-x_-y-case
Diffstat (limited to 'src/choice/mod.rs')
-rw-r--r-- | src/choice/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/choice/mod.rs b/src/choice/mod.rs index 4a4e88f..b835eb8 100644 --- a/src/choice/mod.rs +++ b/src/choice/mod.rs @@ -140,6 +140,8 @@ impl Choice { handle.write_choice(*word, config, true)?; } handle.write_choice(vec[end], config, false)?; + } else if start == end && self.start < vec.len().try_into()? { + handle.write_choice(vec[start], config, false)?; } } |