File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,21 @@ def process_commands
2828 s . interface = @interface
2929 end
3030 event_cmds = Command . commands . map { |cmd | cmd . new ( state , @printer ) }
31- while ! state . proceed? do
31+ until state . proceed? do
3232 input = @interface . command_queue . pop
3333 catch ( :debug_error ) do
3434 splitter [ input ] . each do |input |
3535 # escape % since print_debug might use printf
3636 @printer . print_debug "Processing in context: #{ input . gsub ( '%' , '%%' ) } "
37- if cmd = event_cmds . find { |c | c . match ( input ) }
37+ if ( cmd = event_cmds . find { |c | c . match ( input ) } )
3838 if context . dead? && cmd . class . need_context
3939 @printer . print_msg "Command is unavailable\n "
4040 else
4141 cmd . execute
4242 end
4343 else
4444 @printer . print_msg "Unknown command: #{ input } "
45- end
45+ end
4646 end
4747 end
4848 state . restore_context
You can’t perform that action at this time.
0 commit comments