Commits

Martin Kühl committed 0b82b9a

Clean up inconsistent indentation.

Comments (0)

Files changed (1)

 					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--)
-							 ;
-						 for (; i >=0 && !strchr(word_separators, usrbuf[i]); i--)
-							 ;
-						 i++;
-						 memmove(usrbuf + i, usrbuf + cur, len - cur);
-						 len -= cur - i;
-						 cur = i;
-						 break;
+						for (i = cur - 1; i >= 0 && strchr(word_separators, usrbuf[i]); i--);
+						for (; i >=0 && !strchr(word_separators, usrbuf[i]); i--);
+						i++;
+						memmove(usrbuf + i, usrbuf + cur, len - cur);
+						len -= cur - i;
+						cur = i;
+						break;
 					case CTRL('l') :
-						 cursor_org();
-						 cursor_clr();
-						 fflush(stdout);
-						 kill(-child, SIGWINCH);
-						 break;
+						cursor_org();
+						cursor_clr();
+						fflush(stdout);
+						kill(-child, SIGWINCH);
+						break;
 					case CTRL('d') :
 						if (cur == 0 && len == 0) {
 							usrbuf[cur++] = c;
 						break;
 					default :
 						 if (cur != len)
-							 memmove(usrbuf + cur + 1, usrbuf + cur, len - cur);
+							memmove(usrbuf + cur + 1, usrbuf + cur, len - cur);
 						 usrbuf[cur++] = c;
 						 len++;
 						 break;