diff -ruN virus-0.0.2/ChangeLog virus-0.0.3/ChangeLog --- virus-0.0.2/ChangeLog Thu Jul 18 14:53:36 2002 +++ virus-0.0.3/ChangeLog Mon Aug 5 15:14:17 2002 @@ -1,2 +1,6 @@ virus-0.0.1 to virus-0.0.2 ( 2001/07/07 -- 2002/07/07 ) make virus now works (makefile etc) + +virus-0.0.2 to virus-0.0.3 ( 2002/07/07 -- 2002/08/08 ) + finished updating virus to include changes from busybox 0.60.3 + ( bypass some checks for cursor keys ) diff -ruN virus-0.0.2/virus.c virus-0.0.3/virus.c --- virus-0.0.2/virus.c Thu Jul 18 16:36:40 2002 +++ virus-0.0.3/virus.c Mon Aug 5 13:59:20 2002 @@ -22,7 +22,7 @@ */ char *vi_Version = - "$Id: virus.c,v 0.0.2 2002/07/07 20:40:11 ripclaw Exp $"; + "$Id: virus.c,v 0.0.3 2002/08/08 21:15:03 ripclaw Exp $"; /* * To compile: @@ -789,6 +789,20 @@ cnt = yf = dir = 0; // quiet the compiler p = q = save_dot = msg = buf; // quiet the compiler memset(buf, '\0', 9); // clear buf + + /* if this is a cursor key, skip these checks */ + switch (c) { + case VI_K_UP: + case VI_K_DOWN: + case VI_K_LEFT: + case VI_K_RIGHT: + case VI_K_HOME: + case VI_K_END: + case VI_K_PAGEUP: + case VI_K_PAGEDOWN: + goto key_cmd_mode; + } + if (cmd_mode == 2) { // we are 'R'eplacing the current *dot with new char if (*dot == '\n') {