Commits

Evan Gates committed bacc7d7

added ^B ^F ^K

  • Participants
  • Parent commits fde6445

Comments (0)

Files changed (1)

 						cur = MAX(0, cur - 1);
 						len = MAX(0, len - 1);
 						break;
-					case CTRL('a') :
-						cur = 0;
-						break;
-					case CTRL('e') :
-						cur = len;
-						break;
-					case CTRL('u') :
-						start = cur = len = 0;
-						break;
+					case CTRL('a') : cur = 0;                 break;
+					case CTRL('b') : cur = MAX(0, cur - 1);   break;
+					case CTRL('e') : cur = len;               break;
+					case CTRL('f') : cur = MIN(len, cur + 1); break;
+					case CTRL('k') : len = cur;               break;
+					case CTRL('u') : start = cur = len = 0;   break;
 					case CTRL('w') :
 						for (i = cur - 1; i >= 0 && strchr(word_separators, usrbuf[i]); i--)
 							;