From 979ab795bc9d19524be524c79265c6b952199a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 28 Jan 2016 23:02:19 +0100 Subject: Improve Lua error reporting Display Lua errors in a dedicated window/file. A typo or missing dependency (e.g. lpeg) in visrc.lua will no longer silently fail without any indication. The Lua integration in view.h is not yet converted. --- vis.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 477ffe4..f749a63 100644 --- a/vis.h +++ b/vis.h @@ -81,10 +81,14 @@ void vis_window_prev(Vis*); /* display a user prompt with a certain title and default text */ void vis_prompt_show(Vis*, const char *title); -/* display a message to the user */ +/* display a one line message to the user, will be hidden upon keypress */ void vis_info_show(Vis*, const char *msg, ...); void vis_info_hide(Vis*); +/* display an arbitrary long message in a special window/file */ +void vis_message_show(Vis*, const char *msg); +void vis_message_hide(Vis*); + /* these function operate on the currently focused window but make sure * that all windows which show the affected region are redrawn too. */ void vis_insert(Vis*, size_t pos, const char *data, size_t len); -- cgit v1.2.3