vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit e25f108fe6e7c1107386f322fc5aed8346e07a19
parent e8a83717fca8c6c3100bcd131f77cb1ee935ac2c
Author: Evan Gates <evan.gates@gmail.com>
Date:   Fri, 19 Aug 2022 09:41:04 -0600

Revert "vis-lua: support themes in vis:message"

This reverts commit bc044c0533ecd0220970bd10d3c4f547c5789c5b.

erf mentioned[0] that this change broke a plugin.  Revert for now
until have time to implement it without that bug.

[0] https://github.com/martanne/vis/issues/1034

Diffstat:
Mvis-lua.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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; }