Skip to content

Commit 5340165

Browse files
committed
Fix REPL's prev line capturing
1 parent c16f69c commit 5340165

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/debug/session.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,10 +1777,7 @@ def after_fork_parent
17771777
end
17781778

17791779
def capture_tui_data(tui_data)
1780-
if tui_data
1781-
tui_data[:repl] = "#{prompt}#{@repl_prev_line}"
1782-
@ui.store_tui_data(tui_data)
1783-
end
1780+
@ui.store_tui_data(tui_data) if tui_data
17841781
end
17851782

17861783
SUPPORTED_WINDOWS = {

0 commit comments

Comments
 (0)