about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c6
-rw-r--r--src/ui/ui.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 40f9dbbf..b985e52b 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -1297,6 +1297,12 @@ ui_current_print_formatted_line(const char show_char, int attrs, const char * co
 }
 
 void
+ui_win_error_line(ProfWin *window, const char * const msg)
+{
+    win_print(window, '-', NULL, 0, THEME_ERROR, "", msg);
+}
+
+void
 ui_current_error_line(const char * const msg)
 {
     ProfWin *current = wins_get_current();
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 11457988..e98a105e 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -106,6 +106,7 @@ ProfChatWin *ui_get_current_chat(void);
 void ui_current_print_line(const char * const msg, ...);
 void ui_current_print_formatted_line(const char show_char, int attrs, const char * const msg, ...);
 void ui_current_error_line(const char * const msg);
+void ui_win_error_line(ProfWin *window, const char * const msg);
 
 win_type_t ui_win_type(int index);
 void ui_close_win(int index);