Fix duplicated when clause to match GNU Readline

Tested-by: Mark Somerville <mark@scottishclimbs.com> [Arch, MRI 2.0.0]
Signed-off-by: Mark Somerville <mark@scottishclimbs.com>