[TELNET] Add missing curly braces to if-statelent
[reactos.git] / base / applications / network / telnet / src / tnmain.cpp
index d930dc1..25bf556 100644 (file)
@@ -146,14 +146,18 @@ struct cmdHistory * cfgets (char *buf, unsigned int length, struct cmdHistory *c
                                                if (InputRecord.Event.KeyEvent.dwControlKeyState &
                                                        (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED)) {
                                                        unsigned int j, k;
-                                                       for (j = cursor; j <= current; j++)
-                                                               if (buf[j+1] == ' ' || (j+1)==current)
-                                                                       break;
-                                                               for (k = ++j; k <= current; k++)
-                                                                       if (buf[k] != ' ' || k == current) {
-                                                                               cursor = k == current ? --k : k;
-                                                                               break;
-                                                                       }
+                            for (j = cursor; j <= current; j++)
+                            {
+                                if (buf[j + 1] == ' ' || (j + 1) == current)
+                                    break;
+                                for (k = ++j; k <= current; k++)
+                                {
+                                    if (buf[k] != ' ' || k == current) {
+                                        cursor = k == current ? --k : k;
+                                        break;
+                                    }
+                                }
+                            }
                                                } else
                                                        cursor++;
                                                MustRefresh = 1;