File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,7 @@ def update conf
163
163
if defined? ( SESSION ) && SESSION . active?
164
164
# irb_console is switched from true to false
165
165
if old
166
- Reline . completion_proc = nil
167
- Reline . output_modifier_proc = nil
168
- Reline . autocompletion = false
169
- Reline . dig_perfect_match_proc = nil
170
- SESSION . reset_ui UI_LocalConsole . new
166
+ SESSION . deactivate_irb_integration
171
167
# irb_console is switched from false to true
172
168
else
173
169
if CONFIG [ :open ]
Original file line number Diff line number Diff line change @@ -24,4 +24,14 @@ def activate_irb_integration
24
24
IRB ::Context . prepend ( IrbPatch )
25
25
end
26
26
end
27
+
28
+ class Session
29
+ def deactivate_irb_integration
30
+ Reline . completion_proc = nil
31
+ Reline . output_modifier_proc = nil
32
+ Reline . autocompletion = false
33
+ Reline . dig_perfect_match_proc = nil
34
+ reset_ui UI_LocalConsole . new
35
+ end
36
+ end
27
37
end
You can’t perform that action at this time.
0 commit comments