Skip to content

Commit 3ae648b

Browse files
GetPsychedCube707
authored andcommitted
fix: respect symbol length
If a symbol is more than one character, the rest of the choices still appear with a single indent, which moves choices around when changing choices.
1 parent 3ddfa7c commit 3ae648b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inquirer/render/console/_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_options(self):
6161
symbol = "+" if choice == GLOBAL_OTHER_CHOICE else self.theme.List.selection_cursor
6262
else:
6363
color = self.theme.List.unselected_color
64-
symbol = " "
64+
symbol = " " if choice == GLOBAL_OTHER_CHOICE else " " * len(self.theme.List.selection_cursor)
6565
yield choice, symbol, color
6666

6767
def process_input(self, pressed):

0 commit comments

Comments
 (0)