diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-28 23:02:19 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-30 18:36:53 +0100 |
| commit | 979ab795bc9d19524be524c79265c6b952199a22 (patch) | |
| tree | c0635271327ffa59cd811c770d6e6f1adf9ac353 /vis.h | |
| parent | 603a2d2e78d1f1dd71a2f1a7f4560e0816e3dd32 (diff) | |
| download | vis-979ab795bc9d19524be524c79265c6b952199a22.tar.gz vis-979ab795bc9d19524be524c79265c6b952199a22.tar.xz | |
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.
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |
