fix length calculation in input_options

This commit is contained in:
Adrian Sampson 2012-01-31 12:42:11 -08:00
parent 337e2556a6
commit 1330d6fb4f

View file

@ -185,7 +185,7 @@ def input_options(options, require=False, prompt=None, fallback_prompt=None,
prompt_part_lengths.append(len(tmpl % str(default)))
else:
prompt_parts.append('# selection')
prompt_part_lengths.append(prompt_parts[-1])
prompt_part_lengths.append(len(prompt_parts[-1]))
prompt_parts += capitalized
prompt_part_lengths += [len(s) for s in options]