Skip to content

Commit

Permalink
Crach when ENTER key is pressed in the Alpine minimal image #2658
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Jan 20, 2024
1 parent f59a683 commit 42f95f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions glances/outputs/glances_curses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,8 @@ def display_popup(

# Add the message
for y, m in enumerate(sentence_list):
popup.addnstr(2 + y, 2, m, len(m))
if len(m) > 0:
popup.addnstr(2 + y, 2, m, len(m))

if popup_type == 'info':
# Display the popup
Expand Down Expand Up @@ -1048,7 +1049,7 @@ def display_popup(
logger.debug("User enters the following string: %s" % textbox.gather())
return textbox.gather()[:-1]
else:
logger.debug("User centers an empty string")
logger.debug("User enters an empty string")
return None
elif popup_type == 'yesno':
# # Create a sub-window for the text field
Expand Down

0 comments on commit 42f95f3

Please sign in to comment.