Skip to content

Commit bd9a813

Browse files
jsxs0ko1
authored andcommitted
Fix load_history method
1 parent 64c0c72 commit bd9a813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/debug/console.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ def deactivate
209209
def load_history
210210
read_history_file.each{|line|
211211
# Use scrub to handle encoding issues gracefully, then strip
212-
line.scrub.strip!
212+
line.scrub!
213+
line.strip!
213214
history << line unless line.empty?
214215
} if history.empty?
215216
history.count

0 commit comments

Comments
 (0)