about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-10-06 22:46:04 +0100
committerJames Booth <boothj5@gmail.com>2013-10-06 22:46:04 +0100
commitdd4deafe93bc1a17560ef0e381ae2ad751e8e6ca (patch)
tree4f3a5c67d3d8466ec03efec021a29d9aee9e7b8b /src/ui
parenteee49e8ad8e72f083e4019e7452e9405ce7cb037 (diff)
downloadprofani-tty-dd4deafe93bc1a17560ef0e381ae2ad751e8e6ca.tar.gz
Refactor ui_current_error_line
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 5559639a..807625d8 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -792,12 +792,8 @@ void
 ui_current_error_line(const char * const msg)
 {
     ProfWin *current = wins_get_current();
-    current->print_time(current, '-');
-    wattron(current->win, COLOUR_ERROR);
-    wprintw(current->win, "%s\n", msg);
-    wattroff(current->win, COLOUR_ERROR);
-
-    wins_refresh_current();
+    current->print_line(current, '-', COLOUR_ERROR, msg);
+    current->refresh_win(current);
 }
 
 void
rtik.com> 2015-05-06 00:19:03 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-05-06 00:19:03 -0700 1279 - colorized rendering of the source files' href='/akkartik/mu/commit/html/044space_surround.cc.html?h=hlt&id=672e3e50c6ed6de161e40aa256c3fc0f2b1f7cf9'>672e3e50 ^
d44123ca ^
672e3e50 ^



















9570363a ^





672e3e50 ^
c5ffb6e1 ^
672e3e50 ^
c5ffb6e1 ^
672e3e50 ^
c5ffb6e1 ^
672e3e50 ^





c5ffb6e1 ^
9570363a ^
65361948 ^
672e3e50 ^

9570363a ^

672e3e50 ^

9570363a ^
672e3e50 ^


9570363a ^



9542bb11 ^
c5ffb6e1 ^
65361948 ^
672e3e50 ^


c5ffb6e1 ^


9570363a ^
c5ffb6e1 ^
672e3e50 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92