aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Wainwright <josh.wainwright@ldra.com>2016-06-14 15:26:50 +0100
committerJosh Wainwright <josh.wainwright@ldra.com>2016-06-14 15:26:50 +0100
commit15d6a96f83f9b7cc8d7cee5259a36ab49108dcaa (patch)
tree3ae9253ba8da00857af3285448b2bc3761f13c50
parentc22fa0d326369dfa7dd375dc2c399df3d52330c9 (diff)
downloadvis-15d6a96f83f9b7cc8d7cee5259a36ab49108dcaa.tar.gz
vis-15d6a96f83f9b7cc8d7cee5259a36ab49108dcaa.tar.xz
Update the statusline when starting or ending the recording of a macro
-rw-r--r--vis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index cdc3057..581adcd 100644
--- 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;
}