Skip to content

Commit fbc485a

Browse files
committed
Fixing refactoring's bug
1 parent 15c7a90 commit fbc485a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def print_contexts(contexts)
9191
end
9292

9393
def print_context(context)
94-
print "<thread id=\"%s\" status=\"%s\" pid=\"%s\" #{current_thread_attr}/>", context.thnum, context.thread.status, Process.pid
94+
print "<thread id=\"%s\" status=\"%s\" pid=\"%s\" #{current_thread_attr(context)}/>", context.thnum, context.thread.status, Process.pid
9595
end
9696

9797
def print_variables(vars, kind)
@@ -349,7 +349,7 @@ def handle_binary_data(value)
349349
value
350350
end
351351

352-
def current_thread_attr
352+
def current_thread_attr(context)
353353
if context.thread == Thread.current
354354
'current="yes"'
355355
else

0 commit comments

Comments
 (0)