Contributed off-by-one fix for editline