Skip to content

Commit

Permalink
Unusual characters in cmdline cause lines to disappear and corrupt th…
Browse files Browse the repository at this point in the history
…e display #1692
  • Loading branch information
nicolargo committed Jul 21, 2020
1 parent aa73127 commit 9f8a812
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions glances/outputs/glances_curses.py
Expand Up @@ -869,12 +869,16 @@ def display_plugin(self, plugin_stats,
y = display_y
for m in plugin_stats['msgdict']:
# New line
if m['msg'].startswith('\n'):
# Go to the next line
y += 1
# Return to the first column
x = display_x
continue
try:
if m['msg'].startswith('\n'):
# Go to the next line
y += 1
# Return to the first column
x = display_x
continue
except:
# Avoid exception (see issue #1692)
pass
# Do not display outside the screen
if x < 0:
continue
Expand Down

0 comments on commit 9f8a812

Please sign in to comment.