aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vis-lua.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 84f054c..0642343 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -781,11 +781,7 @@ static int info(lua_State *L) {
static int message(lua_State *L) {
Vis *vis = obj_ref_check(L, 1, "vis");
const char *msg = luaL_checkstring(L, 2);
- if (msg && vis_window_new(vis, NULL)) {
- text_appendf(vis->win->file->text, "%s\n", msg);
- text_save(vis->win->file->text, NULL);
- view_cursor_to(vis->win->view, 0);
- }
+ vis_message_show(vis, msg);
return 0;
}