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
28
28
s . interface = @interface
29
29
end
30
30
event_cmds = Command . commands . map { |cmd | cmd . new ( state , @printer ) }
31
- while ! state . proceed? do
31
+ until state . proceed? do
32
32
input = @interface . command_queue . pop
33
33
catch ( :debug_error ) do
34
34
splitter [ input ] . each do |input |
35
35
# escape % since print_debug might use printf
36
36
@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 ) } )
38
38
if context . dead? && cmd . class . need_context
39
39
@printer . print_msg "Command is unavailable\n "
40
40
else
41
41
cmd . execute
42
42
end
43
43
else
44
44
@printer . print_msg "Unknown command: #{ input } "
45
- end
45
+ end
46
46
end
47
47
end
48
48
state . restore_context
You can’t perform that action at this time.
0 commit comments