Execute all command is the buffer
()
| 180 | * Execute all command is the buffer |
| 181 | */ |
| 182 | public static void Execute() { |
| 183 | Globals.alias_count = 0; // don't allow infinite alias loops |
| 184 | while (!buffer.isEmpty()) { |
| 185 | String command = buffer.pop().trim(); |
| 186 | if (!command.isEmpty()) |
| 187 | Cmd.ExecuteString(command.trim()); |
| 188 | if (Globals.cmd_wait) { |
| 189 | Globals.cmd_wait = false; |
| 190 | break; |
| 191 | } |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Puts all remaining commands from main buffer to deferredBuffer. |