Permalink
Browse files

Bugfix: Must dup the `default_line`, otherwise the caller's string ge…

…ts modified.
  • Loading branch information...
epitron committed Mar 26, 2013
1 parent 5b89492 commit 3083ba0f2824de7bdf3cf09a7cd6077f8a44c68c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/coolline/coolline.rb
View
@@ -188,7 +188,7 @@ def readline(prompt = ">> ", default_line = "")
@history.delete_empty
@line = default_line
@line = default_line.dup
@pos = @line.size
@accumulator = nil

0 comments on commit 3083ba0

Please sign in to comment.