From 6b45ee350eab3de652ec1e9ed6d225c67e558054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 18 Oct 2015 21:19:28 +0200 Subject: vis: factor out syntax highlighting code The view_draw function renders the text into the cells array and resyncs the cursor position. The syntax highlighting is applied in view_update, which also instructs the ui to update. --- vis.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 6222fa0..d075f8a 100644 --- a/vis.c +++ b/vis.c @@ -257,6 +257,9 @@ void vis_draw(Vis *vis) { } void vis_update(Vis *vis) { + for (Win *win = vis->windows; win; win = win->next) + view_update(win->view); + view_update(vis->win->view); vis->ui->update(vis->ui); } -- cgit v1.2.3