1From 46f37e4799b04b08f51fc8b1681749231befdd31 Mon Sep 17 00:00:00 2001
2From: hovercats <hovercatswithlasereyes@protonmail.com>
3Date: Fri, 3 May 2024 16:05:51 +0200
4Subject: [PATCH] fix incompability with netbsd-curses
5
6---
7 command_mode.c | 6 ++++--
8 1 file changed, 4 insertions(+), 2 deletions(-)
9
10diff --git a/command_mode.c b/command_mode.c
11index 3d00267..a227c6b 100644
12--- a/command_mode.c
13+++ b/command_mode.c
14@@ -435,8 +435,10 @@ static void cmd_set(char *arg)
15 } else {
16 current_win()->changed = 1;
17 }
18- update_titleline();
19- update_statusline();
20+ if (cur_view) {
21+ update_titleline();
22+ update_statusline();
23+ }
24 } else {
25 struct cmus_opt *opt;
26 char buf[OPTION_MAX_SIZE];
27--
282.44.0
29