all repos — tint2 @ cbe31981b327d6348171be2abbf94dfb68150657

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Executor: fallback to old style tooltips if stderr is empty
o9000 mrovi9000@gmail.com
commit

cbe31981b327d6348171be2abbf94dfb68150657

parent

dafe9824e393f6bebcf9cffadc1a72d61229a45e

1 files changed, 6 insertions(+), 4 deletions(-)

jump to
M src/execplugin/execplugin.csrc/execplugin/execplugin.c

@@ -794,10 +794,12 @@ if (start)

start += strlen(ansi_clear_screen); else start = execp->backend->buf_stderr; - execp->backend->tooltip = strdup(start); - rstrip(execp->backend->tooltip); - if (strlen(execp->backend->tooltip) > MAX_TOOLTIP_LEN) - execp->backend->tooltip[MAX_TOOLTIP_LEN] = '\0'; + if (*start) { + execp->backend->tooltip = strdup(start); + rstrip(execp->backend->tooltip); + if (strlen(execp->backend->tooltip) > MAX_TOOLTIP_LEN) + execp->backend->tooltip[MAX_TOOLTIP_LEN] = '\0'; + } } execp->backend->buf_stderr_length = 0; execp->backend->buf_stderr[execp->backend->buf_stderr_length] = '\0';