vis

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

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

commit 9d945a49023147c697cdb139dcbb0dcafabd6306
parent 10fd2700e16ff4306788442e9b7712c1e548fb98
Author: Josh Wainwright <josh.wainwright@ldra.com>
Date:   Tue, 14 Jun 2016 15:26:50 +0100

Update the statusline when starting or ending the recording of a macro

Diffstat:
Mvis.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/vis.c b/vis.c @@ -1043,6 +1043,8 @@ bool vis_macro_record(Vis *vis, enum VisRegister id) { if (!(VIS_REG_A <= id && id <= VIS_REG_Z)) macro_reset(macro); vis->recording = macro; + if (vis->event && vis->event->win_status) + vis->event->win_status(vis, vis->win); return true; } @@ -1057,6 +1059,8 @@ bool vis_macro_record_stop(Vis *vis) { } vis->last_recording = vis->recording; vis->recording = NULL; + if (vis->event && vis->event->win_status) + vis->event->win_status(vis, vis->win); return true; }