vis

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

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

event-basic.c

(289B)


      1 #include <stdarg.h>
      2 
      3 #include "vis-core.h"
      4 
      5 #if !CONFIG_LUA
      6 bool vis_event_emit(Vis *vis, enum VisEvents id, ...) {
      7 	va_list ap;
      8 	va_start(ap, id);
      9 
     10 	if (id == VIS_EVENT_WIN_STATUS) {
     11 		Win *win = va_arg(ap, Win*);
     12 		window_status_update(vis, win);
     13 	}
     14 
     15 	va_end(ap);
     16 	return true;
     17 }
     18 #endif