Unusual characters in cmdline cause lines to disappear and corrupt the display #1692

pull/1695/head
nicolargo 2020-07-21 11:26:18 +02:00
parent aa73127d2e
commit 9f8a812081
1 changed files with 10 additions and 6 deletions

View File

@ -869,12 +869,16 @@ class _GlancesCurses(object):
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