mirror of
https://github.com/tmux/tmux.git
synced 2026-01-10 07:10:23 +00:00
Do not log theme if pane is NULL.
This commit is contained in:
2
input.c
2
input.c
@@ -3397,6 +3397,8 @@ input_report_current_theme(struct input_ctx *ictx)
|
|||||||
{
|
{
|
||||||
struct window_pane *wp = ictx->wp;
|
struct window_pane *wp = ictx->wp;
|
||||||
|
|
||||||
|
if (wp == NULL)
|
||||||
|
return;
|
||||||
switch (window_pane_get_theme(wp)) {
|
switch (window_pane_get_theme(wp)) {
|
||||||
case THEME_DARK:
|
case THEME_DARK:
|
||||||
log_debug("%s: %%%u dark theme", __func__, wp->id);
|
log_debug("%s: %%%u dark theme", __func__, wp->id);
|
||||||
|
|||||||
Reference in New Issue
Block a user